rediraction of data entry
I have created file "dirlist" using the next command:
ls > dirlist Then I changed current directory and made the same. When I opened "dirlist" I saw the content of the new current directory. I forbided overwriting by set -o noclobber Yep, it works, nothing can be attended to the file but how to revert? |
noblobber is not what you want - it will make the append FAIL
if the file exists. Just use > for the first redirect, and >> for subsequent ones. Cheers, Tink |
No, you didnt understand the question. When I used set -o noclobber i forbided overwriting the file, right? But how to make the opposite, to allow to overwrite the file)))
|
Quote:
|
Thanks. This is what I wanted
|
All times are GMT -5. The time now is 08:48 PM. |