[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Wildcard for hidden files



On Saturday 21 October 2006 18:37, Tim Post wrote:
> ls -A | grep ^[.] doesn't give you . and .. :)
>
> tar -czvf foo.tar.gz `ls -A | grep ^[.]` should produce the results you
> want wrt archiving the resulting files.
>
> Best,
> -Tim
>
> > ls -a | grep ^[.]
> >
> > This will, however, still give you the . and .. directories.
> >
> > --Ben

Thanks Tim, this worked.

Girish I could't get your version to work, but thanks anyway for the 
suggestion.

Chris

-- 
C. Hurschler



Reply to: