The proper command is:
grep -i pattern file
grep -i does a case insensitive grep.
pattern is the pattern you are searching for.
file is the file you are searching in.
Unless you have spaces or special characters, you do not need '(" or anything of the like.
If you do have something special in there, like ( or #, then encase the entire pattern in '. Like this
grep -i '#wtrepani' /etc/passwd
Another way of explaining the |, is that it pipes the output from one command thru the next in line, ie
cat /etc/passwd |grep -v '#' |grep '/home/yoda' |awk {'print $3'}
will cat the file, then remove any lines with #, then of the remaining lines only select those that contain /home/yoda, then output the 3rd field of that. It will process the first command first then use the output of that to process the second.
Thanks
Will