MESSAGE
DATE | 2007-12-12 |
FROM | Ruben Safir
|
SUBJECT | Subject: [NYLXS - HANGOUT] [bigdaddyj@gmail.com: Re: [MLUG] Re: bash pattern matching]
|
----- Forwarded message from Justin Purdy -----
X-Original-To: mlug-list-at-mail.milwaukeelug.org Delivered-To: mlug-list-at-mail.milwaukeelug.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=OlR73ZP9WYfwI5ad0xZ0gOtyckJec2pLK75NnoDJLag=; b=uvXp392U59kMhkxOrbYSIX83tGEs5bnHSfYWdo2k9jaIg+g5dlM5zIcoHUyLPIalVm2k4w1EvRRCkuyhdq367PLffXEd5kxeH49R8IwW08CXCcnutEjiayo2v9uN8oP6sL4+hlQ1vmtYkLmxynHLNaswQdGI5eWqxEs0Q2+mOc4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=RP9ZEqKmiYQ/Behyi9gF5cf30/Koyu+f7UDlaDIm1YwjcqTas+9pcKwpVkCmw9hrmaQS4PbyyCK/02DG8vFyHh3w8W6twyr7sgThVcDcI5BEzbl2cMTAGzIjBDekNZp/6ygbbqHpU7j6CnIF/S4WEhARjOAmdnzsGWTvXQPVE60= Date: Fri, 30 Nov 2007 09:31:28 -0600 From: Justin Purdy To: mlug-list-at-mail.milwaukeelug.org In-Reply-To: <20071130141031.GF15710-at-pug.qqx.org> Subject: Re: [MLUG] Re: bash pattern matching Reply-To: mlug-list-at-mail.milwaukeelug.org X-Loop: mlug-list-at-mail.milwaukeelug.org X-Sequence: 4189 Errors-to: mlug-list-owner-at-mail.milwaukeelug.org Precedence: list X-no-archive: yes List-Id: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe:
Have you taken a look at txt2regex?
>From http://txt2regex.sourceforge.net/ :
Txt2regex is a Regular Expression Wizard that converts human sentences to regexes. In a simple *interactive* console interface, the user answer questions and the program build the regexes for more than *20 programs*, like Vim, Emacs, Perl, PHP, Python, Procmail and OpenOffice.org. It is a *Shell Script* 100% written with Bash builtin commands. No compilation or extra commands are needed, just download and run.
On Nov 30, 2007 8:10 AM, Aaron Schrab wrote: > At 09:23 -0600 29 Nov 2007, Glenn Holmer wrote: > >In the construct ${var%.jpg} is it possible to make the comparison > >case-insensitive so that it matches both .jpg and .JPG? > > I don't see a way to do that in general with bash, but for specific > patterns you can do it like ${var%.[jJ][pP][gG]} . > > With zsh you could do ${var%(#i}.jpg} . > > For anybody wondering why the original message in this thread took so > long to arrive, the AC at the server's new location failed yesterday > allowing the temperature to reach 131°F. This caused some processes to > die. When I checked on things after the temperature got back down to a > more reasonable level things looked OK, but apparently the list server > wasn't working properly. Something in the daily cron jobs got things > fixed. >
-- Justin Purdy
Choose Freedom! Ron Paul for President 2008 http://www.ronpaul2008.com
http://www.linkedin.com/in/justinpurdy
----- End forwarded message -----
-- http://www.mrbrklyn.com - Interesting Stuff http://www.nylxs.com - Leadership Development in Free Software
So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998
http://fairuse.nylxs.com DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
"Yeah - I write Free Software...so SUE ME"
"The tremendous problem we face is that we are becoming sharecroppers to our own cultural heritage -- we need the ability to participate in our own society."
"> I'm an engineer. I choose the best tool for the job, politics be damned.< You must be a stupid engineer then, because politcs and technology have been attached at the hip since the 1st dynasty in Ancient Egypt. I guess you missed that one."
© Copyright for the Digital Millennium
|
|