Cameron Simpson wrote:
On 30Jan2007 15:24, Jacques B. jjrboucher@gmail.com wrote:
[...]
| The find command is more robust as it will properly deal with | filenames with spaces. Not to mention find will also yield hidden | files (i.e. .file) whereas the above won't.
This depends what you want. But yes. But you can do this:
for f in .* * do case "$f" in . | .. ) continue ;; esac
which gets it all.
With bash you can also use "shopt -s dotglob" to allow * to match filenames beginning with a dot. I find that one handy. :)