Wednesday, July 17, 2013

How to keep files safe from accidental overwriting with noclobber under BASH shell

How to keep files safe from accidental overwriting with noclobber under BASH shell: "Sometime you just need to turn off noclobber for single operation. Use >| operator to force the file to be overwritten:
$ ls /etc >| output.txt
$ less output.txt

"

'via Blog this'