Temporary stdin redirect

Kartik Subbarao subbarao at beam.Princeton.EDU
Tue Feb 5 09:42:03 AEST 1991


In article <20798 at unix.SRI.COM> ubi at ginger.sri.com (Ron Ueberschaer x4399) writes:
>
>There ought to be a way to start a program off with stdin redirected
>from a file, then take over from real stdin.  Does such a capability
>exist in UNIX, preferably under csh?  This would be analogous to the
>>> append syntax, e.g.
>
>	foo << start.input
>
>would use start.input until EOF, then act normally, reading the terminal
>for remaining input.
>

You can use cat to do this:

cat start.input - | foo


			-Kartik

--
internet# find . -name core -exec cat {} \; |& tee /dev/tty*
subbarao@{phoenix or gauguin}.Princeton.EDU -|Internet
kartik at silvertone.Princeton.EDU (NeXT mail)       -|	
SUBBARAO at PUCC.BITNET			          - Bitnet



More information about the Comp.unix.questions mailing list