Red Hat NETSCAPE MANAGEMENT SYSTEM 6.0 - CUSTOMIZATION Manual do Utilizador Página 255

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 300
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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.
Vista de página 254
1 2 ... 250 251 252 253 254 255 256 257 258 259 260 ... 299 300

Comentários a estes Manuais

Sem comentários