scripts/yodlstriproff
raw| 1 | #!/bin/sh |
| 2 | # striproff -- strip ascii control characters and page numbers |
| 3 | |
| 4 | # uniq is not really what we mean, but it removes all the ugly |
| 5 | # empty lines, and i can't get sed to understand: |
| 6 | # |
| 7 | # sed "s/\n\n\n/\n\n/" |
| 8 | # |
| 9 | # or something like that. |
| 10 | |
| 11 | NEWLINE="\ |
| 12 | " |
| 13 | grotty -b -u -o -f | |
| 14 | sed "//,/$NEWLINE*[ ]*-[0-9]*-/d" | uniq |