'Backup;'

This commit is contained in:
Arkadiusz Hypki 2023-05-15 14:42:46 +02:00
parent 408500556f
commit bc7c991ea2
3 changed files with 13 additions and 3 deletions

11
args-reversed.sh Normal file
View 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

View File

@ -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"

View File

@ -1 +0,0 @@
https://meet.jit.si/unixsysop