unixowe-systemy-operacyjne/tabledata/ex1.sh

7 lines
154 B
Bash
Raw Normal View History

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