diff options
Diffstat (limited to 'CIS/post-process')
-rwxr-xr-x | CIS/post-process | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/CIS/post-process b/CIS/post-process index ffe744b..459a98a 100755 --- a/CIS/post-process +++ b/CIS/post-process @@ -10,8 +10,9 @@ sed ' s@\s\+~@~@g; s@\\bar@| \0@g; s@\(\S\)\s\+@\1 @g; -' "$1" \ -| sed ' +' -i "$1" + +sed ' /|/! { :a N @@ -21,8 +22,11 @@ sed ' } /}/! ba } -' \ -| sed ' +' -i "$1" + +sed ' s@\(\S\)\s\+@\1 @g; -' \ -| sponge "$1" + s@\s$@@ +' -i "$1" + +rm "$1~" |