1
0

feat: Initial commit

This commit is contained in:
2024-03-22 16:54:05 +01:00
parent 0d9957a125
commit d993185b89
25 changed files with 641 additions and 0 deletions

24
Lab07/es4.sh Normal file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
declare -A acr
if [ $# -ne 1 ]
then
echo "Missing filename"
exit 1
fi
for word in `cat $1`
do
if [ -v "acr[$word]" ]
then
acr[$word]=$((acr[$word]+1))
else
acr[$word]=1
fi
done
for key in ${!acr[*]}
do
echo "${key}: ${acr[$key]}"
done