Find -type d with no subfolders
Posted
by
titatom
on Stack Overflow
See other posts from Stack Overflow
or by titatom
Published on 2013-11-13T15:42:43Z
Indexed on
2013/11/13
15:54 UTC
Read the original article
Hit count: 155
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 !
© Stack Overflow or respective owner