clmystery/hint8

12 lines
473 B
Plaintext
Raw Normal View History

2013-10-26 05:28:23 +02:00
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':
2016-01-29 19:42:03 +01:00
cat Fitness_Galaxy AAA United_MileagePlus | grep "John Smith" | wc -l