> for file in files.txt
> do
> find / -name $file -exec doStuff.sh {} \; 2>/dev/null
> done
> fred=`cat mytextfile`
> for i in $fred ; do
> find . -name $i -print -exec rm {} \;
> done
Thanks Jill and Malcom, very neat. I had been recently introduced to:
for i in *; do stuff; done
.. for looping over the contents of a directory, but of course it isn't
much good in that form for hierachy or a random situation like the one
with the text file. That rocks.
- Andrew
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug