unixowe-systemy-operacyjne/tabledata/ex1.sh
Arkadiusz Hypki bc7c991ea2 'Backup;'
2023-05-15 14:42:46 +02:00

7 lines
146 B
Bash
Executable File

#!/bin/bash
# iterating line-by-line over the input file
numOfPeople=`cat $1 | grep "$2" | wc -l`
echo "Num. of people from $2 is $numOfPeople"