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' Output:
/home/tom/project/.log.txt /home/tom/project1/.log.txt find: Filesystem loop detected; ./.snapshot/hourly.0' has the same device number and inode as a directory which is 2 levels higher in the filesystem hierarchy. find: Filesystem loop detected; ./.snapshot/hourly.1' has the same device number and inode as a directory which is 2 levels higher in the filesystem hierarchy. I want eliminate all the find messages or do not serach in the hidden directory
ls /home/tom/project/ dir1 dir2 .backup .snapshot/ .ignore/