Red Hat NETSCAPE MANAGEMENT SYSTEM 6.0 - CUSTOMIZATION User Manual Page 252

  • Download
  • Add to my manuals
  • Print
  • Page
    / 300
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 251
240 You Are Here
[billy@localhost billy]$ cat saturday
and you should see something like this:
[billy @localhost billy]$ cat saturday
buy some sneakers
then go to the coffee shop
then buy some coffee
bring the coffee home
take off shoes
put on sneakers
make some coffee
relax!
[billy @localhost billy]$
You can see that cat has added home.txt where sneakers.txt left off.
Tip: Creating and combining short les with cat can be a convenient alternative to
using a text editor like pico.
Summary: By using the output redirection symbol (>) you can send the output to a le
instead of the terminal. The cat utility can be used along with output redirection to join
les together into a single, unied le with one lename.
16.8 Appending Standard Output
Theres a neat twist to output redirection which allows you to add new information to the end of
an existing le. Similar to when you used the > symbol, you tell your shell to send the information
somewhere other than standard output.
However, when you use >>,youre adding information, rather than replacing it.
The best explanation is a demonstration, so lets take two les which have already already been
created sneakers.txt and home.txt and join them by using the append output symbol. We
want to add the information in home.txt to the information already in sneakers.txt,sowetype:
cat home.txt >> sneakers.txt
Page view 251
1 2 ... 247 248 249 250 251 252 253 254 255 256 257 ... 299 300

Comments to this Manuals

No comments