how do you use rm to del found files
dattaway at attaway.net
dattaway at attaway.net
Thu Jun 27 15:00:58 CDT 2002
On Thu, 27 Jun 2002, Gene Dascher wrote:
> This should do it for you:
>
> find . -name "*.class" -exec rm -rf {} ; -print
or use the handy backticks, which runs the commands placed within them,
returning its output in its place:
rm `find . -name *.class -print`
...useful in many other ways, such as playing all mp3's that have "friday"
in the title:
xmms `find /mp3 | grep -i friday`
More information about the Kclug
mailing list