Last active
March 9, 2017 01:45
-
-
Save sskjames/dad57cb131e84abe02d5 to your computer and use it in GitHub Desktop.
Wraps all lines in a file with OpenLP formatting tags
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
awk '{if (NF > 0) {print "{y}" $0 "{/y}"}else{print $0}}' "$1" > temp.txt | |
mv temp.txt "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment