make command output more Kik compliant
This commit is contained in:
parent
c054752be7
commit
324ecd76ce
2 changed files with 4 additions and 4 deletions
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
for word in $(grep -Roh '\w*' "$1" | sort | uniq)
|
for word in $(grep -Roh '\w*' "$1" | sort | uniq)
|
||||||
do
|
do
|
||||||
echo "current word: $word"
|
echo "$word:"
|
||||||
grep -Rw "$word" "$1"
|
grep -Rwn "$word" "$1"
|
||||||
done
|
done
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
for word in $(grep -Roh '\w*' "$1" | sort | uniq)
|
for word in $(grep -Roh '\w*' "$1" | sort | uniq)
|
||||||
do
|
do
|
||||||
echo "current word: $word"
|
occurences=$(grep -REn "($word.*){2}" "$1")
|
||||||
grep -RE "($word.*){2}" "$1"
|
[ -n "$occurences" ] && printf '%s:\n%s\n' "$word" "$occurences"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue