Página Inicial > dicas, linux, shell > dicas do dia-a-dia, parte 1

dicas do dia-a-dia, parte 1

Você provavelmente se encontra em uma situação parecida nas suas tarefas rotineiras:

$ cat arquivo | less

Por que alimentar um processo (less) com a saída do outro (cat), sendo que o less é capaz de abrir o arquivo e ler seu conteúdo?

Do Unix Power Tools, página 888:

A wise man once said: if you find yourself calling cat with just one argument, then you’re probably doing something you shouldn’t.

Compartilhe:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Rec6
  • Reddit
  • StumbleUpon
Categories: dicas, linux, shell Tags:
  1. Nenhum comentário ainda.
  1. Nenhum trackback ainda.

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word