Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!sdd.hp.com!hp-col!hpldola!hp-lsd!jimr@hplsdv7.COS.HP.COM From: jimr@hplsdv7.COS.HP.COM (Jim Rogers) Newsgroups: comp.unix.shell Subject: Re: Concatenation of stdin and a file?? Message-ID: <27620011@hplsdv7.COS.HP.COM> Date: 7 May 91 14:51:29 GMT References: <1991May6.160308.19911@uts.uni-c.dk> Organization: HP Logic Systems Division - Col Lines: 25 Try using a command in the following form; cat - | telnet 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