#! /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 debugger and code formatter for sed scripts
### original script: http://sed.sf.net/grabbag/scripts/revlines.sed