RE: Recursively delete

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

 



>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?


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



-- 
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