I am trying to count the number records that contain specific words that are not group together by grepping on 2 keywords in my script but having no success.
John Doe Married
Jan Doe Married
Don Doe Single
(i know the syntax is not right)
example....
#how many Doe's are Married
for file in 'blahblahblah'
do
grep -n -c "Doe"&&"Married" $file
done
John Doe Married
Jan Doe Married
Don Doe Single
(i know the syntax is not right)
example....
#how many Doe's are Married
for file in 'blahblahblah'
do
grep -n -c "Doe"&&"Married" $file
done