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

  • Download
  • Add to my manuals
  • Print
  • Page
    / 300
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 254
16.10 Pipes 243
One answer is to pipe the output to a utility called less. Known as a pager, less, (like more) allows
us to view information one page (or screen) at a time.
We use the vertical bar (|) to pipe the commands (as shown in Figure 16.15).
ls -al /etc | less
Now we can view the contents one screen at a time. To move forward a screen, just press
Space ;to
move back a screen, press
B ;toquit,justpress Q .
Figure 16.15: Piping the output of ls to the less pager
Actually, weve already been using pipes, before we even discussed what they were.
In previous references to man pages, we used the following to print out the man page entry:
man ls | col -b | lpr
Here, were sending the output of man ls to a lter called col with an option of -b to help format
the text for the printer, then we sent the output of that to the printer using the lpr command.
Page view 254
1 2 ... 250 251 252 253 254 255 256 257 258 259 260 ... 299 300

Comments to this Manuals

No comments