[NTLUG:Discuss] How do I make all files in a directory of zero length?
Lance Simmons
lance at lsimmons.net
Wed Jun 6 13:06:56 CDT 2001
On Wed, Jun 06, 2001 at 12:43:20PM -0500, Fred James wrote:
>
> How do you define "pretty"?
I think I meant "short".
cat /dev/null > *
could be rewritten as
> *
That's short, but doesn't work.
The best solution so far is:
for i in *; do > $i; done
Is there a shorter solution?
--
.~.
/v\ Lance Simmons
// \\ lance at lsimmons.net
/( )\
__^_^________________________________________________________________________
The problem with graduate students, in general, is that they have
to sleep every few days.
More information about the Discuss
mailing list