This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: How do I remove CR/LF from text file
- To: cygwin <cygwin at sourceware dot cygnus dot com>
- Subject: Re: How do I remove CR/LF from text file
- From: Brian Keener <bkeener at thesoftwaresource dot com>
- Date: Fri, 02 Feb 2001 13:02:54 EST
- Reply-To: bkeener at thesoftwaresource dot com
Larry Hall wrote:
> How about piping it through tr, mapping \n to \r\n?
>
I can't seem to get tr to exchange more than one character since I am
only starting with one character.
tr "[\n]" "[\n\r]" < /tmp/foo >/windows/temp/foo2 no apparent change
tr "[\n]" "[\r]" < /tmp/foo >/windows/temp/foo2 No apparent change when
looking in Notepad
tr "[\n]" "[~]" < /tmp/foo >/windows/temp/foo2 all then newlines
changed to ~
Got any idea what I am doing wrong - I don't see any other flags or
switches that might make a difference.
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple