A very simple way is ">foo" (noquotes) works in bash. It also creates a file.
Krzysztof On Sat, 6 Dec 1997, Carl Mummert wrote: > Is there already a (standard) utility on a linux box to truncate a > file to 0 bytes? [Besides echo -n "" > foo, which is 1) too long for > my lazy fingers and 2) won't take multiple filenames ] > > Since I couldn't find one, I wrote a little C program to do it, but I > am still interested in whether there is already one on the system. > > Carl > > [EMAIL PROTECTED] > One must imagine Sysiphus happy > > > -- > TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to > [EMAIL PROTECTED] . > Trouble? e-mail to [EMAIL PROTECTED] . > -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .