Andrew Foster wrote:
> So, I have a list of random filenames in a text file:
>
> thing.mp3
> pants.txt
> yer.rtf
> others.html
>
> These files do exist on my system, except they're scattered throughout a
> directory tree hierachy, and there's no path info in my text file to say
> where.
>
> I need to find the given files in the tree, then do stuff with them. For
> instance, delete them.
#!/bin/sh
for file in thing.mp3 pants.txt yer.rtf others.html; do
find . -name $file | xargs rm -f
done
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug