For example I have many many directories, let's say dir1, dir2, dir3 and in each of that dir has subdir named tempdir.
I want to delete all files in tempdir from dir1 to dir3 without manually going to each directory and delete. The tempdir itself is deleted or not is not a problem.
Tnx
|
| ||||
|
feedback
|
|
Try cd into the directory above, and execute that. | |||||
feedback
|
|
Go to Search and do a search for tempdir on the directories you want to scan. The take all the results and press delete. Damm easy :) | |||
|
feedback
|
|
This may not be for everyone but I love it, understand a few things first. To focus in on just deleting the tempdir directories, assuming that there may be other files or directories within dir1 dir2 dir3, I would do the following. Go to the directory which is the parent of dir1 dir2 dir3 and run
meaning the following
if ok is replace with exec then it will just to it. So do the following rm -rf on all matching "found entries" or in other words remove recursively forcing removal all directories named temdir | ||||
|
feedback
|