De acordo com as Leis 12.965/2014 e 13.709/2018, que regulam o uso da Internet e o tratamento de dados pessoais no Brasil, ao me inscrever na newsletter do portal DICAS-L, autorizo o envio de notificações por e-mail ou outros meios e declaro estar ciente e concordar com seus Termos de Uso e Política de Privacidade.
Colaboração: Rubens Queiroz de Almeida
Data de Publicação: 24 de Junho de 1997
O comando sort, na sua forma mais simples, serve para ordenar o conteúdo de um arquivo. Tomemos o arquivo:
x a h j k
O comando abaixo, executado sobre o arquivo arq1, irá gerar a saída exibida abaixo:
% sort arq1 a h j k x
Além desta função, o comando sort também pode ser utilizado para combinar dois arquivos diferentes. Os arquivos sobre os quais o comando sort irá atuar já devem ter sido previamente ordenados:
aa yy
bb zz
O comando
% sort -m arq1 arq2
irá exibir na tela
aa bb yy zz
A saída do comando sort, em todos os exemplos apresentados, tem sido redirecionada para a tela. Caso queiramos redirecionar esta saída para um arquivo para processamento posterior, temos duas opções equivalentes:
% sort arq1 arq2 > arq3
ou
% sort arq1 arq2 -o arq3
From The Washington Monthly, January/February 1991, page 24:
"This is an actual alert to IBM Field Engineers that went out to all IBM Branch Offices. The person who wrote it was very serious. The rest of us find it rather funny.
"Abstract: Mouse Balls Available as FRU (Field Replacement Unit)
"Mouse balls are now available as FRU. Therefore, if a mouse fails to operate or should it perform erratically, it may need a ball replacement. Because of the delicate nature of this procedure, replacement of mouse balls should only be attempted by properly trained personnel.
"Before proceeding, determine the type of mouse balls by examining the underside of the mouse. Domestic balls will be larger and harder than foreign balls. Ball removal procedures differ depending upon manufacturer of the mouse. Foreign balls can be replaced using the pop-off method. Domestic balls are replaced using the twist-off method. Mouse balls are not usually static sensitive. However, excessive handling can result in sudden discharge. Upon completion of ball replacement, the mouse may be used immediately.
"It is recommended that each replacer have a pair of spare balls for maintaining optimum customer satisfaction, and that any customer missing his balls should suspect local personnel of removing these necessary items.
"To re-order, specify one of the following:
"P/N 33F8462 - Domestic Mouse Balls "P/N 33F8461 - Foreign Mouse Balls"
This policy contains information about your privacy. By posting, you are declaring that you understand this policy:
This policy is subject to change at any time and without notice.
These terms and conditions contain rules about posting comments. By submitting a comment, you are declaring that you agree with these rules:
Failure to comply with these rules may result in being banned from submitting further comments.
These terms and conditions are subject to change at any time and without notice.
Comentários