TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:3948] simple bash script - redirect pipe
On Fri, 5 Feb 1999, Ben Luey wrote:
> How do I control what is piped to a script? 
> I want to be able to type
> 
> `cat myfile |myscript'
> 
> and myscript will redirect the pipe (ie contents of myfile) to someother
> program.
You don't want to pipe, you want to redirect. Try this:
myscript < myfile
That means, "Take 'myfile' as the input for 'myscript'".
---------(( Christopher Reid Palmer : www.pconline.com/~reid/ ))---------
              the characters i am, made into a word complete
                              -- Meshuggah