Two grep statements are needed in case I'm looking for a name that needs both first and last name.
I'd like to have a shell script that could do this, where I run the script from the command line and enter the strings as arguments at run time. My biggest question is how do I ensure in the variable that both lowercase and uppercase letters are searched for each letter.
I haven't written a shell script in a long time so I'm very rusty.
dkozel$ man grep | grep -e '-e' -A2
grep [options] [-e PATTERN | -f FILE] [FILE...]
DESCRIPTION
--
-E, --extended-regexp
Interpret PATTERN as an extended regular expression (see
below).
--
-e PATTERN, --regexp=PATTERN
Use PATTERN as the pattern; useful to protect patterns begin-
ning with -.
--
--exclude=PATTERN
Recurse in directories skip file matching PATTERN.
multiple -e's can be used to specify several search terms