delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/01/10/16:42:41

From: dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de
Subject: RE: error in 'tr'-command for Windows32
10 Jan 1997 16:42:41 -0800 :
Sender: daemon AT cygnus DOT com
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <009AE2DD.E9637460.7059.cygnus.gnu-win32@ifk20.mach.uni-karlsruhe.de>
Original-To: borghard AT lsy-pps DOT de
Original-CC: gnu-win32 AT cygnus DOT com, dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Hi Susann, you wrote:

: I wanted to extract the 'newline' from a file and write the
: result in an other file.
: 
: tr -d '???' < test1.txt > test2.txt
: 
: I found no way to express the 'newline'. And independent if I called
: \ or /, in both cases the / was deleted. So I think, the tool does'nt
: know '\'.

I don't understand at all what this has to do with a '/'.
But quoting '\' right can get tricky...

What is a 'newline' for you? A NL '\n'? A CR '\r'?
If your problem is conversion CR/LF -> LF, look for a program dos2unix.
The other way around is handled by unix2dos.


Bye, Heribert (dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de)
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019