'Backup;'
This commit is contained in:
parent
408500556f
commit
bc7c991ea2
11
args-reversed.sh
Normal file
11
args-reversed.sh
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ $# -eq 0 ]; then exit 1; fi
|
||||
|
||||
for ((i=$#;i>0;i--))
|
||||
do
|
||||
eval echo -n " \$$i "
|
||||
echo -n " "
|
||||
done
|
||||
|
||||
echo
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# iterating line-by-line over the input file
|
||||
numOfPeople=`cat $1 | grep 'Poland' | wc -l`
|
||||
numOfPeople=`cat $1 | grep "$2" | wc -l`
|
||||
|
||||
echo "Num. of people from Poland is $numOfPeople"
|
||||
echo "Num. of people from $2 is $numOfPeople"
|
||||
|
@ -1 +0,0 @@
|
||||
https://meet.jit.si/unixsysop
|
Loading…
Reference in New Issue
Block a user