How to strip A NEWLINE
WU SHI-KUEI
skwu at boulder.Colorado.EDU
Tue Dec 4 03:23:04 AEST 1990
tr -d '\012' < file
will strip newlines. Use 'sed' first if removing other stuff, e.g.
sed 'whatever' file | tr -d '\012'
More information about the Comp.unix.shell
mailing list