Concatenation of stdin and a file??

Jim Rogers jimr at hplsdv7.COS.HP.COM
Wed May 8 00:51:29 AEST 1991


Try using a command in the following form;

cat <some-file> - | telnet <some-node>


Refer to the following excerpt of the cat man page for confirmation of
how this works:




               cat file1 file2 >file3

          concatenates the first two files and places the result on
          the third.

          If no input file is given, or if the argument - is
          encountered, cat reads from the standard input file,
          enabling you to combine standard input with other files.


Jim Rogers
Hewlett-Packard Company
Colorado Springs, Colorado
United States of America



More information about the Comp.unix.shell mailing list