You're replying to a comment by Nic.

May 09, 2011, 16:57

Here's a one-liner I wrote to fold every ten lines of STDIN to one on STDOUT:

perl -ple '$\ = $. % 10 ? "\t" : "\n"'

which just sets the output line terminator $\ to a tab except when the line number $. has no remainder when divided by 10.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the word "computer_256": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.