[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: tr problem



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 ... ;-)
Gianluca

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]