bash-redirections-cheat-sheet icon indicating copy to clipboard operation
bash-redirections-cheat-sheet copied to clipboard

Write to file with noclobber set

Open joew60 opened this issue 6 years ago • 0 comments

Hi,

Please add how to overwrite a file whilst noclobber is set. In bash for example

set -o noclobber # enable no clobber 
cat file.txt >| myoverwrittenfile.txt # will overwrite file

Thanks

joew60 avatar Oct 16 '18 13:10 joew60