You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
473 B
12 lines
473 B
6 years ago
|
To see who was a member of several different groups, you can combine their membership lists into one and search against that.
|
||
|
|
||
|
cat Fitness_Galaxy AAA United_MileagePlus | grep "John Smith"
|
||
|
|
||
|
If you only want to see the number of matches, you can use grep's -c option (the c must be lowercase):
|
||
|
|
||
|
cat Fitness_Galaxy AAA United_MileagePlus | grep -c "John Smith"
|
||
|
|
||
|
Or you can pipe the result to 'wc -l':
|
||
|
|
||
|
cat Fitness_Galaxy AAA United_MileagePlus | grep "John Smith" | wc -l
|