[plug] hidden files

Ben New ben at leftclick.com.au
Wed Aug 20 10:49:02 WST 2003


ummmmmm....
woops :)  just forget about #2 okay :-)




Ben New wrote:

>
> Richard Meyer wrote:
>
>> find / -name .* -print
>>
>> This will scan the whole directory structure for everything whose name
>> starts with a ".", and print the result.
>>  
>>
>
> Sorry Richard, that won't work for 2 reasons-
>
> 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.
>
> You might have to play around with the -regex option or something. 
> (This is assuming that you meant "files with names that start with a 
> dot" when you say "hidden files")
>
> Regards,
> Ben
>

-- 
Ben New
ben at leftclick.com.au
0407 089 890

Leftclick Software Development
http://www.leftclick.com.au/
08 9433 5380




More information about the plug mailing list