[oclug] find
Mike Hoye
mhoye at neon.polkaroo.net
Thu Apr 22 18:21:54 EDT 2004
On Thu, Apr 22, 2004 at 06:10:18PM -0400, Bob Lockie wrote:
> On 04/22/04 17:05 Francis J. A. Pinteric spoke:
> >Do you have something against "rm *"?
>
> I need the file names but not the content.
Wierd.
for i in `ls`; do rm -f $i; echo {} > $i; done
Alternatively, if you want to save those names to a file somewhere, you could do
for i in `ls`; do rm -f $i; echo $i >> a_file_somewhere; done
--
"If language is not correct, then what is said is not what is meant. If
what is said is not what is meant, then what ought to be done remains
undone." - Kung Fu'Tse
More information about the OCLUG
mailing list