ADSM-L

Re: AIX Question!

2002-07-10 11:20:33
Subject: Re: AIX Question!
From: Kai Hintze <kai_hintze AT ALBERTSONS DOT COM>
Date: Wed, 10 Jul 2002 09:18:48 -0600
Just be aware that find will also go down subdirectories, so if you have
files with similar names in lower levels that you want to keep you have to
find another way. If there are no subdirs, or if the subdirs don't have
similar names then find works great.

Someone mentioned xargs. xargs works great and was faster in a test I saw
(but we are only talking fractions of a second per 1000 files :).

Another way is to ls filespec > delthem. Then edit delthem and put rm in
front of every line. (Hint: in vi use :%s/^/rm /). This gives you very fine
control, but is slowest.

There are perl scripts (and I'm sure REXX, python, etc) that wrap around rm
and read the directory to handle large directories.

I could go on, but....

Have fun!
Kai.

<Prev in Thread] Current Thread [Next in Thread>