I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
">>|" will force it on zsh. You don't need that (and it won't be recognised) on bash. Equally, you don't need to create a file on bash prior to writing to it.
I'm mixed up because I regularly use >| to force overwriting a file when I've got noclobber set...
You don't need to create a file in order to append to it - you can use
>>|instead of>>later on and it will work.Hey,
That is indeed correct. It also saves code as well!
Looks like I'm mixed up.
">>|" will force it on
zsh. You don't need that (and it won't be recognised) onbash. Equally, you don't need to create a file onbashprior to writing to it.I'm mixed up because I regularly use
>|to force overwriting a file when I've gotnoclobberset...Hey,
That is correct! Thanks for sharing it.