Tokenizer for Linux Shell (cut2)

About a year ago, i coded a little command line tool to tokenize data from a file or stdin and print each token as new line to stdout. Now you can use grep, sort or cut to manipulate the data further. As delimiter you can use any string you want and it will be left out in the result.


After make copy the cut2 binary to /usr/bin/ and you can use it like every other command line tool.

Usage: cut2 -d DELIM [- | filename]

Have fun :)

update: improved code now available at github