This page contains some of the shell scripts and some of the shell utils that are useful in regular work.
This happens many a times, user may accidentally use '>' operator and override original file. Or sometimes you may use '>' instead of '>>'. In such a cases, user can use noclobber to ask before doing any action.
Now redirect some result to an already existing file called as "temp"
Then bash will give an error message saying:
Rather than setting each time use the below statement to place permenantly the noclobber setting statement as below:
The above command will allow user to overwrite the existing "temp" file.
">|" operator is used to force the file to be overwritten.
Page Information
|
Wiki Information
|
Recent PBwiki Blog Posts |