>Try this command. Make sure you are in the correct directory. > >find .-name "file*" -exec rm -f {} \; ^ | oops Technically, the above won't work, but this will: find . -name "file*" -exec rm -f {} \; The specific request would be: find . -name \*.o -exec rm -f {} \; With the above, one has to be in the correct starting directory, otherwise replace the "dot" with the starting path. MB >At 09:15 AM 1/15/2004 -0800, you wrote: >>Hi all: >> >>If I want to recursively delete a type of file, e.g., >>all *.o files in subdirectories, what should I do? >> >>rm -r can only be used to delete directories, right? >> >>Thanks. >> >>Jack >> >>__________________________________ >>Do you Yahoo!? >>Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes >>http://hotjobs.sweepstakes.yahoo.com/signingbonus >> >> >>-- >>redhat-list mailing list >>unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe >>https://www.redhat.com/mailman/listinfo/redhat-list > > >-- >redhat-list mailing list >unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe >https://www.redhat.com/mailman/listinfo/redhat-list > -- e-mail: vidiot@xxxxxxxxxx /~\ The ASCII \ / Ribbon Campaign [So it's true, scythe matters. Willow 5/12/03] X Against Visit - URL: http://vidiot.com/ / \ HTML Email -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list