
16.7 Using Redirection 239
take off shoes
put on sneakers
make some coffee
relax!
Now, on an empty line, use the
Ctrl and D keys again to quit cat.
We can check the file again by typing:
cat home.txt
at the prompt.
Let’susecat again to join home.txt with sneakers.txt and redirect the output of both files to a
brand new file we’ll call saturday (you’ll find an example in Figure 16.13).
[billy@localhost billy]$ cat sneakers.txt home.txt > saturday
That’sit.
Figure 16.13: Joining files and redirecting the output
Now it’stimetocheckourhandiwork.Type:
Komentarze do niniejszej Instrukcji