#! /bin/sed -nf # These three reverse the lines in a file by moving the line to # the *beginning* of hold space. Replace these three with a `p' # (or remove them and remove the -n flag above) to reverse # the chars on a single line 1 !G h $ p ### colorized by sedsed, a sed script debugger/indenter/tokenizer/HTMLizer ### original script: http://pcsiwa.rett.polimi.it/~paolob/seders/scripts/revlines.sed