Thursday, January 18, 2007

delayed file overwrite

Can I get ( sleep 10 ; echo hello ) >| foo (bash syntax) to wait 10 seconds before overwriting the file? That is, when an already existing file is opened for writing, don't zero it until the first byte is written, or it is closed.

No comments :