'chown' and hidden directories

Condon Thomas A KPWA tcondon
Fri Feb 18 11:30:27 PST 2005


> -----Original Message-----
> From: Michael Hipp [mailto:Michael at hipp.com] 
> Sent: Thursday, February 17, 2005 7:30 PM
> To: Linux tips and tricks
> Subject: Re: 'chown' and hidden directories
> 
> >>>chown -R michael: .[^.]*
> >>
> > If I'm not mistaken, any file that begins with a ., and 
> doesn't have a . after 
> > it
> > .[not .]*
> 
> That's sorta what I thought, but that would still allow it to 
> chew on '.' . 
> But I guess that's won't hurt.

The . wouldn't hurt, since it is "here".  However, I believe the '[' & ']'
indicate that there must be a character there.  So it is (in English):
Dot <OneOfAnyCharacterButDot> <AnyNumberOfAnyCharacters>

Thus precluding '.' as a solution to this expression.


In Harmony's Way and In A Chord,

Tom  ;-})

Thomas A. Condon
Proud Member of the Kitsap Chordsmen
Registered Linux User # 154358
You Can't Catch A Virus From Plain Text Email!



More information about the Linux-users mailing list