Entrance

toni magni - interoperability infrastructure actor

2009-W46-7
2009-11-15 Sunday

find and grep Regular Expressions

Always use the extended version of the regular expressions. In find:

find -E ./ -iregex ".*((zip)|(gz))$"

is equivalent to

find .| grepĀ  -iE ".*((zip)|(gz))$"

Use this to search for this pattern or that pattern. The parenthesis to group expressions this way only work in extended (as grep(1) calls them) or modern (as re_format(7) calls them).

In grep use -i to ignore case. In find, use -iregex to ignore case.


Addressbook
Articles
Contacts
Education
Family
Guestbook
Members
Music
Projects
Resume
Sitelife