>To: plank@cs.utk.edu >Subject: standard input > > The < symbol is used to redirect standard input. How do you have >actual standard input with cat? You have to use - but to terminate, >there's supposed to be an EOF. Then you can do something with the input >with standard output, standard error, etc. But, how do you get standard >input? > > This is what I tried. I don't know how to get out of >standard input: > $ cat - form_letter > output >Dear Sue, >CTRL-D >EOF >exit >^Z >Stopped >UNIX> Hmmmm -- that works for me from both the csh and the Bourne shell. The CNTL-D must be done directly after a newline (i.e. you can't type a space and then CNTL-D. UNIX> sh $ cat > f1 Hi, This is Jim $ cat f1 Hi, This is Jim $ cat f1 > f2 $ cat f2 Hi, This is Jim $ cat f1 - > f2 Is this working? $ cat f2 Hi, This is Jim Is this working? $ cat - f1 > f2 Is this working? $ cat f2 Is this working? Hi, This is Jim $ UNIX> cat f1 - > f2 Hmmm UNIX> cat f2 Hi, This is Jim Hmmm UNIX>