[Linux-disciples] Clear out gnutella

Karl Sokol revkarl at gmail.com
Fri Jul 29 12:14:16 EDT 2005


I am still trying to learn basic syntax. When looking for ./fubar3, what 
does the second "." mean in the search ".*b.*3"? I have noticed that if I 
fill space with a letter that it gets ignored as well.

On 7/28/05, Stephen R Laniel <steve at laniels.org> wrote:
> 
> 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
> 
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
> 
> iD8DBQFC6ZGOHa1lzVGot+YRAvG4AJ9ocFhoqU6HUwSHPhGTGyu9031sRQCeOvv6
> v/ShVd6UU6an0PMIwLDZxTI=
> =Pffh
> -----END PGP SIGNATURE-----
> 
> 
> _______________________________________________
> Linux-disciples mailing list
> Linux-disciples at lists.bostoncoop.net
> http://lists.bostoncoop.net/mailman/listinfo/linux-disciples
> 
> 
> 


-- 
Grace and Peace,
Karl Sokol

"Do all the good you can, by all the means you can, 
in all the ways you can, in all the places you can, 
at all the times you can, to all the people you can, 
as long as ever you can." ---John Wesley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20050729/09d64503/attachment.html


More information about the Linux-disciples mailing list