I want to learn to use the shell and was wondering why this …

Página Principal
Anexos:
Mensagem como email
+ (text/plain)
Apagar esta mensagem
Responder a esta mensagem
Autor: Jeremy C. Reed
Data:  
Assunto: I want to learn to use the shell and was wondering why this didn't do as expected
On Thu, 20 Feb 2003, Michael Havens wrote:

> Why did my version (sort mypasswd >mypasswd |cat mypasswd) erase it?



The shell deleted mypasswd (when you did ">mypasswd") before you tried to
sort it.

See Bill Jonas's email for good explanation.

Jeremy C. Reed
http://bsd.reedmedia.net/