[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Redirect stdout without clobbering?



On 7 May 2010 14:48, Javier Barroso <javibarroso@gmail.com> wrote:
> On Thu, May 6, 2010 at 6:26 PM, Dotan Cohen <dotancohen@gmail.com> wrote:
>> Is there a way to redirect stdout to a file without clobbering its
>> possibly-existing contents? Rather, the output should be appended to
>> the end of the file. Thanks.
> Maybe you would like to hear about noclober option in bash (set -o
> noclobber) that will force you to not overwrite any file
>

Thanks, Javier! You are right, I went through the bash manpage and
searched for clobber, sure enough!

It looks like I need to read that whole document, there is some good
info in there. Thank you!



-- 
Dotan Cohen

http://bido.com
http://what-is-what.com


Reply to: