Find -type d with no subfolders
- by titatom
Good morning !
This is a simple one I believe, but I am still a noob :)
I am trying to find all folders with a certain name. I am able to do this with the command
find /path/to/look/in/ -type d | grep .texturedata
The output gives me lots of folders like this :
/path/to/look/in/.texturedata/v037/animBMP
But I would like it to stop at .texturedata :
/path/to/look/in/.texturedata/
I have hundreds of these paths and would like to lock them down by piping the output of grep into chmod 000
I was given a command with the argument -dpe once, but I have no idea what it does and the Internet has not be able to help me determine it's usage
Thanks you very much for your help !