I want to use grep to ckeck file errors, in which case ,I used
number_of_errors=$(grep -v -c (pattens) file)
there r 2 problems , firstly , I want to use mutiple pattens and match any one of them (in this case if non of them is matched, since -v is used as an option).
2ndly, I want to assign the returned number to a variable, and my expression is incorrect.....
Any help would be appreciated.^_^
thanks for ur attention.