[vox-tech] Ubuntu 10.04 LTS upgrade woes
Ken Bloom
kbloom at gmail.com
Wed Jan 19 08:00:26 PST 2011
On Tue, 2011-01-18 at 19:00 -0800, Rick Moen wrote:
> Quoting Chanoch (Ken) Bloom (kbloom at gmail.com):
>
> > He wants *only* the dotfiles (and none of the regular files)
> [...]
> > That's why he changed it to the following, which requires there be a
> > non-dot character after the dot
> >
> > tar zcfv dotfiles.tar .[!.]*
>
> $ cd /tmp
> $ touch ..foo
> $ ls .[!.]*
> $
>
> ;->
>
> (Yes, '.[!.]*' is nonethless a pretty good solution, among a myriad of
> imperfect ones.)
A correct solution that covers all of the corner cases would be to
replace the glob with
find -path './.*' -maxdepth 1
More information about the vox-tech
mailing list