I think you can get the same results by doing something like this:
foo < datain > dataout
On Fri, Oct 31, 2008 at 12:42 PM, Christopher Howard
<choward@indicium.us> wrote:
> Forgive the newbie question. Say I've got a C program called foo, and
> foo takes input from stdin, processes it, and prints results to stdout.
> I know that in a shell I can use files for stdin/stdout like this
> (because it worked when I tried):
>
> $ cat datain | foo | cat > dataout
>
> Can I get the same results without using cat?
>
>
>
> ---------
> To unsubscribe, send email to <aklug-request@aklug.org>
> with 'unsubscribe' in the message body.
>
>
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Fri Oct 31 13:09:39 2008
This archive was generated by hypermail 2.1.8 : Fri Oct 31 2008 - 13:09:39 AKDT