Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ls g^h
- X-seq: zsh-users 13750
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: ls g^h
- Date: Mon, 26 Jan 2009 13:45:39 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=QL4vSkzGs3viH9PJ0+fmxCCVEDua8aslcVG78lrgTY4=; b=Io47nZ+O4A9KH6WJnuYhBQE60K3sIPV17q3fa7dk2TsyBbsO8JJJXx8yq8GQBVYujN G5C+nJ/OE29mDbx7evOhQWgBVx7oCi4lYDQh1YKYFY6p/08onC2vAF90tSlSlQTNohmf AonssaEJytPXNz/jgmE9rdSy6zzTDGIma1tgk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=UDakFWJTNy/TfB/tDKDOiauQTAS+mVdCgiclV952tq8dm2LuRo3kJOB9LjSQe9ub9t 3qr3yMrmqy0XNdflb75DWAO3urrRa5KbwkbTVD5eCGS9nkXSwihsMEZ3OOCfUvfYWOEO ohkdNaKU789b9S1rEBQCgE3/u4G06OUs5WflE=
- In-reply-to: <Xns9B9F80A4D3C0Bzzappergmailcom@xxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <Xns9B9BC34D87629zzappergmailcom@xxxxxxxxxxxx> <900AB2BB-03D0-494A-99FF-D364BD0C31A4@xxxxxxxxx> <Xns9B9CC392AE3A2zzappergmailcom@xxxxxxxxxxxx> <237967ef0901240945y4c908dccn4c1c1deb2c9f0a2c@xxxxxxxxxxxxxx> <Xns9B9F80A4D3C0Bzzappergmailcom@xxxxxxxxxxxx>
2009/1/26 zzapper <david@xxxxxxxxxx>:
> Mikael Magnusson wrote in
> news:237967ef0901240945y4c908dccn4c1c1deb2c9f0a2c@xxxxxxxxxxxxxx:
>
>> 2009/1/23 zzapper <david@xxxxxxxxxx>:
>>> Henno Brandsma wrote in
>>> news:900AB2BB-03D0-494A-99FF-D364BD0C31A4@xxxxxxxxx:
>>>
>>>>
>>> Thanks Henno
>>>
>>> trying to work out where this would be useful
>>>
>>> ls -1 *.^txt # list all but *.txt
>>>
>>> any more?
>>
>> % rm -rf Pictures_of_^beautiful_flowers
>> removed directory: `Pictures_of_old_garbage'
>> removed directory: `Pictures_of_random_junk'
>>
> The conventional zsh way would be?
> ls *.*~*.txt
> rm -rf Pictures_of_*~*beautiful_flowers
There is a small difference between ^ and ~ in this context. ~ matches
the whole globbed string while ^ only matches a single element, IIRC
at least. So you can do a/^foo/blue which is not the same as
a/*/blue~foo/blue but rather a/(*~foo)/blue, again IIRC.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author