You are not logged in.
Hi,
Is there a way to let bash confirm overwrite of file when using the > redirection operator to a filename that already exists?
But not for >>. And not if > is used in an sh file, only if I type it manually.
Thanks!
Last edited by aardwolf (2012-09-17 08:58:37)
Offline
Moving to Programming & Scripting.
To know or not to know ...
... the questions remain forever.
Offline
set -o noclobber
Forces you to type >|
Offline