MACSCRPT Archives

April 2006

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Peter N Lewis <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 6 Apr 2006 22:56:42 +0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (19 lines)
>Could someone provide me with a working example of 'find' from the 
>terminal using the 'iregex' switch?  I'm getting stymied.

iregex is case insensitive regex.

find /System/Library -iregex ".*/fINDer.app/.*/sPANish.lproj/.*\.strings"

finds all the Spanish strings resources in the Finder app.

Note that the regex is probably not a PCRE, and so is probably more 
limited in what it accepts.

Enjoy,
    Peter.

-- 
Check out Interarchy 8, just released!
<http://www.stairways.com/>  <http://download.stairways.com/>

ATOM RSS1 RSS2