LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   bash searching directries and find the files (https://www.linuxquestions.org/questions/programming-9/bash-searching-directries-and-find-the-files-354806/)

bekirsagir 08-19-2005 03:55 AM

bash searching directries and find the files
 
I have got a problem. I want to remove all the files which is ended ".d"
I have a subfolders and I have to search all subfolders and find the .d files and remove them. How can I do that?

Hko 08-19-2005 04:37 AM

Code:

find /your/dir -type f -name '*.d' | xargs rm


All times are GMT -5. The time now is 03:26 PM.