added ex1.sh script;
This commit is contained in:
parent
2d1a906624
commit
40f323217a
6
tabledata/ex1.sh
Executable file
6
tabledata/ex1.sh
Executable 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"
|
Loading…
Reference in New Issue
Block a user