Hi can anybody help me with the following line;
find . \( -type d ! -name . -prune \) -o -type f -name "*Log*"
Basically it should find directories where files with "Log" in their name are present.
I have a structure like this:
/logs
|
|
----folder1
| |
| |
| ---App1LogDate.txt
|
----folder2
| |
| |
| ---App2LogDate.txt
|
|
|--App3LogDate.txt
|
|--App4LogDate.txt
So given that I will run this line within /logs directory I should get the following results:
.
./folder1
./folder2
3 directories in total.
-type d
instead of-type f
in the "or" portion?