2023-05-08 16:18:28 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# iterating line-by-line over the input file
|
2023-05-15 14:42:46 +02:00
|
|
|
numOfPeople=`cat $1 | grep "$2" | wc -l`
|
2023-05-08 16:18:28 +02:00
|
|
|
|
2023-05-15 14:42:46 +02:00
|
|
|
echo "Num. of people from $2 is $numOfPeople"
|