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

Re: Wildcard for hidden files



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/21/06 10:31, Chris wrote:
> On Saturday 21 October 2006 14:48, Clive Menzies wrote:
>> On (21/10/06 07:23), Ron Johnson wrote:
>>> On 10/21/06 07:14, Clive Menzies wrote:
>>>> On (21/10/06 14:01), Chris wrote:
[snip]
> 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 " /.")

No pain if you have experimented first.  OTOH...

But I'd use du(1) instead.

dots=$(du --max-depth=1 -a | cut -f2 | grep '\.\/\.' | sort)

tar cvvjf dotfiles.tar.bz2 $dots

- --
Ron Johnson, Jr.
Jefferson LA  USA

Is "common sense" really valid?
For example, it is "common sense" to white-power racists that
whites are superior to blacks, and that those with brown skins
are mud people.
However, that "common sense" is obviously wrong.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFOkMbS9HxQb37XmcRAjDsAKDKE0FEFibT9p6aZHZgo6gZXTHQLwCgiMK2
isTWdkVyIsg5xQsuc81t4Es=
=tb5s
-----END PGP SIGNATURE-----



Reply to: