Hi everyone,
I use the command find to get all folder contents of a folder. The problem is, it also gives files from within other files with package contents. (.app, .rtfd, ...). Is there anyway to not do that ?
find /path/to/my/folder/ ! -name '.*'"
(I'm using OS X, I don't know if other OSes see package contents too)
One possible option: Well I'm not 100% sure it's possible but what about only searching through folders with a maxdepth of 1 ? So all files get found and if it's a folder, search it till maxdepth 1 and if it includes a folder do it again etc. ?
Thanks in advance