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

RE: truncating files



Try this one:

>foo

or, for multiple file names:

for xxx in *
do
>$xxx
done

where * is any regular expression or:

for xxx in a b c d e f g.c h.o g.txt ...
do
>$xxx
done

If your finger are lazier than that, I'm afraid I can't help ;-)


On 06-Dec-97 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
>
>--mummert@cs.wcu.edu-----------
>One must imagine Sysiphus happy
>
>
>--
>TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
>debian-user-request@lists.debian.org . 
>Trouble?  e-mail to templin@bucknell.edu .

-----------------------------------------
Ralph Winslow                 rjw@nac.net
The IQ of the group is that of the member
whose IQ is lowest  divided by the number
of members.


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: