append to a text file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 6 Sep 2003, Chuck Hallenbeck wrote:

> Granted, the double greater-than is dangerous because it is easy
> to forget to double it, which means you kiss the older stuff
> bye-bye, but we already know that Linux assumes you know what you
> are doing.

For the paranoid, most shells (including Bash,) have a feature to prevent
this.  In Bash, you can do "set -o noclobber" and it won't let you
overwrite files in this fashion.





[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux