What command can I use to split input like this:
foo:bar:baz:quux
into this?
foo
bar
baz
quux
I'm trying to figure out the cut
command but it seems to only work with fixed amounts of input, like "first 1000 characters" or "first 7 fields". I need to work with arbitrarily long input.
tr : '\n' < input
? – jw013 Dec 11 '12 at 16:00