7 lines
138 B
Bash
Executable file
7 lines
138 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
for word in $(grep -Roh '\w*' "$1" | sort | uniq)
|
|
do
|
|
echo "current word: $word"
|
|
grep -Rw "$word" "$1"
|
|
done
|