In the following command i want to search only only the directories which are non hidden how can i do this using the following command .Iwant to ignore hidden directories while searching the log file
find /home/tom/project/ -name '.log.txt'
ls /home/tom/project/
dir1
dir2
.backup
.snapshot/
.ignore/
Try
This will find all files but ignore those that start with a dot so hidden files.
EDIT: If the above those not work, this should do the trick. It has a better regex.
EDIT2:
The following will exclude hidden folders but will search for the hidden files that have the requested pattern:
EDIT3:
The grep solution :) if this doesn't work i'm lost :)
EDIT4:
Have you tried the simple solutions?
OR