srodowisko_programisty/lab1/3.bash
2024-10-11 11:37:25 +02:00

6 lines
140 B
Bash
Executable file

#!/usr/bin/env bash
for word in $(grep -Roh '\w*' "$1" | sort | uniq)
do
echo "$(grep -lRw "$word" "$1" | wc -l) $word"
done | sort -r