srodowisko_programisty/lab1/3.bash

7 lines
141 B
Bash
Raw Permalink Normal View History

2024-10-11 11:37:25 +02:00
#!/usr/bin/env bash
for word in $(grep -Roh '\w*' "$1" | sort | uniq)
do
2024-10-13 21:13:20 +02:00
echo "$word: $(grep -lRw "$word" "$1" | wc -l)"
done | sort -n