[plug] hidden files
Craig Ringer
craig at postnewspapers.com.au
Wed Aug 20 10:49:07 WST 2003
>> find / -name .* -print
>
> 1. the shell will expand the * before it executes find, making the
> params for find incorrect, and
> 2. even if you quoted or escaped the ".*", the find will also find the
> "." and ".." entries of each directory, which happen to start with a
> ".", thereby finding every directory in the system.
Actually, find doesn't list the '.' and '..' directories except for the
current directory, so that shouldn't be a problem.
As for the shell escape, just use
find / -name .\*
and you'll be fine.
Craig Ringer
More information about the plug
mailing list