As of Mon, Jan 20, 2003 at 05:12:26PM +0530, Philip S Tellis reported from
a remote location:
[..]
: echo '\n' | tr '\n\r' ' '

[new] $echo '\n' | tr '\n\r' ' '
\n [new] $


: echo 'hello\nworld\r!' | tr '\n\r ' '

[new] $echo 'hello\nworld\r!' | tr '\n\r' ' '
hello\nworld\r! [new] $



: hmmm... is that what you mean to do?

But. 
[new] $cat file 
test1
test2
test3
test4
[new] $cat file | tr "\n\r" "  "
test1 test2 test3 test4 [new] $

Seems to work just fine. 

I think it solves the problem? 


-- 
~noufal 

Make sure your code "does nothing" gracefully.
            - The Elements of Programming Style (Kernighan & Plaugher)


-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to