[oclug] sed/tr question
hdc at fs.ca
hdc at fs.ca
Fri Mar 18 03:24:26 EST 2005
On Friday 18 March 2005 04:27 am, Patrick Smith wrote:
> hdc at fs.ca wrote:
> > I need to combine these lines into a single line (and then perform other
> > manipulations on the data), so I am trying to use sed and/or tr to remove
> > the CR/LF combination.
>
> tr -d '\r\n' < file > newfile
That did it, thanks! Not sure why I couldn't get it to work before. Probably
because I had been trying so many combinations and permutations in sed and
getting nowhere, I just confused myself.
Still don't know why I can't get it to do this in sed.
Many thanks.
Hugh
More information about the OCLUG
mailing list