An upgrade to attoparsec, Haskell parsing library: more speed, more power
serpentine.com
serpentine.com
tac (1) - concatenate and print files in reverse perl -e 'print reverse <>'For those not familiar with Haskell,
unlines . map reverse . lines
is the same thing as (python) lambda data : [line[::-1] for line in data]
whereas unlines . reverse. lines
is the same as lambda data : [line for line in data][::-1] '\n'.join(...)
for the "unlines" bit.`rev` is an great tool for processing text files from the command line. It is especially useful when you need a quick and easy way to grab the last column of a delimited file when the lines do no have the same number of columns:
$ cat somefile | rev | cut -f 1 -d DELIMITER | rev
[1]: http://unix.stackexchange.com/questions/92730/usr-bin-ptx-ca...