bash-redirections-cheat-sheet
bash-redirections-cheat-sheet copied to clipboard
Write to file with noclobber set
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