Skip to content

Instantly share code, notes, and snippets.

@sskjames
Last active March 9, 2017 01:45

Revisions

  1. sskjames revised this gist Mar 9, 2017. No changes.
  2. sskjames revised this gist Mar 9, 2017. No changes.
  3. sskjames revised this gist Sep 26, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion wrap-with-openlp-tag.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1,2 @@
    awk '{if (NF > 0) {print "{y}" $0 "{/y}"}else{print $0}}' "$1" > temp.txt
    awk '{if (NF > 0) {print "{y}" $0 "{/y}"}else{print $0}}' "$1" > temp.txt
    mv temp.txt "$1"
  4. sskjames created this gist Sep 26, 2015.
    1 change: 1 addition & 0 deletions wrap-with-openlp-tag.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    awk '{if (NF > 0) {print "{y}" $0 "{/y}"}else{print $0}}' "$1" > temp.txt