sed'ing out newlines

John Jannotti jj at lcs.mit.edu
Mon Dec 15 12:54:43 EST 2003


Dan Barrett <nullpointer at pobox.com> writes:
> Can anyone remind me of the proper regexp to feed sed which will cause it to 
> eat newlines off?  I've got a file of newline-separated data which I want to 
> concatenate into one big string.

You can use: perl -ne chomp <somefiles>

  jj




More information about the Discuss mailing list