>>>>> "Jameson" == Jameson Williams <[email protected]> writes:
Jameson> find . -type f -exec truncate -s 0 {} \;
Jameson> rm * might otherwise work well in most settings, but probably doesn't
meet the
Jameson> spec of the original one-liner problem statement. :-)
Find is overkill if you're not descending directories.
perl -e 'open F, ">$_" for @ARGV' *
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[email protected]> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug