[aklug] noob scripting question -- file input/output

From: Christopher Howard <choward@indicium.us>
Date: Fri Oct 31 2008 - 12:42:31 AKDT

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.
Received on Fri Oct 31 12:42:53 2008

This archive was generated by hypermail 2.1.8 : Fri Oct 31 2008 - 12:42:53 AKDT