Re: Wildcard for hidden files
On Saturday 21 October 2006 18:30, Girish Venkatachalam wrote:
> On Sat, Oct 21, 2006 at 05:31:11PM +0200, Chris wrote:
> > I know, I'm being a pain, but if I want to pipe this list to tar?
> > Something like:
> >
> > tar -cvvzf test.tar.gz (ls -aFl grep " /.")
> >
> > ???
>
> Who said so ? That you are a pain? :-)
>
> You are a pleasure since I know the best way to do it. :-)
>
> tar -cvvzf test.tar.gs ( find . -name ".*" -maxdepth 1 -type f)
>
> Happy? :-)
Thanks! I am glad to see that this isn't really trivial, judging from the
various different responses I'm getting. I thought this could be a simple on
liner, but it looks more like something one would want to save in a script.
and, yes, this makes me happy in a small but significant way (if it works!!).
Chris
>
> regards,
> Girish
--
C. Hurschler
Reply to: