tr problem

Patrick O'Callaghan pocallaghan at gmail.com
Fri Jun 13 14:58:59 UTC 2008


On Fri, 2008-06-13 at 09:29 +0200, Gianluca Cecchi wrote:
> On Fri, 13 Jun 2008 10:19:16 +1000 Cameron Simpson wrote:
> > That's because \ is a shell quoting character. You need to quote
> it:-)
> >   tr -c '\r' '\n' <filename >filename2
> > Then tr will see the \ character.
> 
> So that with:
> 
>    tr -c \\r \\n <filename >filename2
>  
> I won by two characters ... ;-)

Eliminating the '-c' will give three characters less and will actually
work.

poc




More information about the fedora-list mailing list