[Linux-disciples] Clear out gnutella

Stephen R Laniel steve at laniels.org
Thu Jul 28 22:16:46 EDT 2005


On Thu, Jul 28, 2005 at 09:52:16PM -0400, Adam Rosi-Kessel wrote:
> I guess the best way would be
> find ~ -iregex '.*stuff.*'
> which would catch both stuff that starts with a dot and stuff that
> doesn't.

Hot damn. I had no idea about '-iregex'. I've always assumed
that 'find' just used shell regexes and couldn't use regular
regexes. Thanks for pointing that out, Adam.

Just for completeness, below are the relevant parts of the
manpage for find(1).

       -iregex pattern
	      Like -regex, but the match is case insensitive.

[...]

       -regex pattern
	      File  name  matches regular expression pattern.  This is a match
	      on the whole path, not a search.	For example, to match  a  file
	      named ./fubar3, you can use the regular expression .*bar. or
	      .*b.*3, but not f.*r3.  The regular  expressions	understood
	      by  find	follow the conventions for the re_match system library
	      function where this is present (i.e. on systems using the GNU  C
	      Library).  On other systems, the implementation within Gnulib is
	      used; by default, Gnulib provides basic regular expressions.

-- 
Stephen R. Laniel
steve at laniels.org
+(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20050728/0f7777bd/attachment-0001.pgp


More information about the Linux-disciples mailing list