added ex1.sh script;

This commit is contained in:
Arkadiusz Hypki 2023-05-08 16:18:28 +02:00
parent 2d1a906624
commit 40f323217a

6
tabledata/ex1.sh Executable file
View File

@ -0,0 +1,6 @@
#!/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"