Re: Things to avoid typing at a command prompt



jellybean stonerfish wrote:
$ cat myfile
This is a file
$ echo $(cat myfile) > myfile
$ cat myfile
This is a file


The following does hose myfile:

$ cat myfile
This is a file
$ cat myfile | cat > myfile
$ cat myfile
$

http://partmaps.org/era/unix/award.html
.