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)
|
||||
do
|
||||
echo "current word: $word"
|
||||
grep -Rw "$word" "$1"
|
||||
echo "$word:"
|
||||
grep -Rwn "$word" "$1"
|
||||
done
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
for word in $(grep -Roh '\w*' "$1" | sort | uniq)
|
||||
do
|
||||
echo "current word: $word"
|
||||
grep -RE "($word.*){2}" "$1"
|
||||
occurences=$(grep -REn "($word.*){2}" "$1")
|
||||
[ -n "$occurences" ] && printf '%s:\n%s\n' "$word" "$occurences"
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue