I/O redirection (was RE: Import question)
Kenneth Brody
kenbrody at bestweb.net
Thu Mar 23 07:43:34 PST 2006
Quoting Don Coleman (Thu, 23 Mar 2006 10:06:56 -0500):
[...]
> > tr -d "\0" <file1.txt >file2.txt
[...]
> Ken, Wally, and others; thanks for the tip, after one question answered
> by Ken off-list it is working fine (processing a 3.5 MB file in about 1
> second). One final question, what does the < do?
<filename
Redirects the "standard input" to come from the specified file.
>filename
Redirects the "standard output" to go to the specified file.
2>filename
Redirects the "standard error" to go to the specified file.
tr -d "\0" <file1.txt >file2.txt
Runs the command:
tr -d "\0"
redirecting stdin from "file1.txt" (rather than reading from
the keyboard) and stdout to "file2.txt" (rather than displaying
on the screen).
--
KenBrody at BestWeb dot net spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com
More information about the Filepro-list
mailing list