On Sat, 22 Feb 2003, Thiago F.G. Albuquerque wrote:

> 
> >However, to downoad a file by telnet, capture stdout so:
> >
> >telnet hostname | tee logfile
> >....
> >uuencode remotefile remotefile
> >exit
> >tr -d "r" < logfile | uudecode
> 
> Ok, I understand. But what is this 'tr -d "r"' for?
> 
> Thiago

He's trying to remove the octal '\015' or '\r' newline terminator. BUT the
tr -d 'r' command removes the ascii character 'r' as in octal '\162'.

Little mistake.. I guess. This could disrupt potentialy the encode file.

references:
man ascii

B.T.W.
tr -d '\015' works also als a DOS to UNIX newline converter. I have it as
a handy alias in my .bashrc.
   alias nodos="tr -d '\015'"

nodos < my_msdos_newline.txt > my_unix_newline.txt

J.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to