removing end of line mark with sed

A.V. Raman ARaman at massey.ac.nz
Mon Aug 20 15:36:26 AEST 1990


In article <1990Aug19.194911.16628 at fs-1.iastate.edu> spam at iastate.edu (Begley Michael L) writes:
>Here's a simple one...
>How do I remove the end of line marker from a stream?  for example,
>
>I tried      sed 's/\n//'      but that didn't work.  Thanks.

tr -d \\012

will do the trick.

-& (Anand)



More information about the Comp.unix.questions mailing list