Re: Recursively delete

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Try this command. Make sure you are in the correct directory.

find .-name "file*" -exec rm -f {} \;


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

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux