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 handle, if you have one.)

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

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