0

Recursively removing multiple files with extension using find command

the current working directory contains various files. whereas i need to remove only the files with .cache extension... Can i able to do this using find command.....???

ryan
asked Feb 5, 2017
1 Answer
0

You can use the below command to remove .cache files....

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

Here, dot is to represent the current working directory, -name will check for the exact name called .cache and -exec will execute the rm -f command i.e., it will delete the respective files.

View More
jagannatharumugam
answered Feb 6, 2017
Your Answer
||||
x
 
100:0