From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <509df4fc42746adef7f1ab70cbe8d509@coraid.com> References: <509df4fc42746adef7f1ab70cbe8d509@coraid.com> Date: Wed, 16 Feb 2011 16:18:25 +0100 Message-ID: From: hugo rivera To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] rc file name matching Topicbox-Message-UUID: af6473e4-ead6-11e9-9d60-3106f5b1d025 Thanks Erik. 2011/2/16 erik quanstrom : > On Wed Feb 16 09:59:31 EST 2011, uair00@gmail.com wrote: >> Hi, >> In rc >> *hola* >> matches any file that contains the word 'hola'. Is there any way to >> match all the files that don't contain 'hola' in its name? with awk >> and grep it's easy, but I can't figure out with rc. > > match=3D() > for(i in *) > =C2=A0 =C2=A0 =C2=A0 =C2=A0! ~ $i *hola && match =3D ($match $i) > > - erik > > --=20 Hugo