diff --git a/tabledata/ex1.sh b/tabledata/ex1.sh new file mode 100755 index 0000000..588322b --- /dev/null +++ b/tabledata/ex1.sh @@ -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"