On Tue, 2011-01-18 at 19:00 -0800, Rick Moen wrote: > Quoting Chanoch (Ken) Bloom (kbl...@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 _______________________________________________ vox-tech mailing list vox-tech@lists.lugod.org http://lists.lugod.org/mailman/listinfo/vox-tech