Answers for "Word frequency list (Index) for a file"

0

Word frequency list (Index) for a file

% (tr ' ' '\n' | sort | uniq -c | awk '{print $2"@"$1}') <<EOF
This is a file with many words.
Some of the words appear more than once.
Some of the words only appear one time.
EOF

a@1
appear@2
file@1
is@1
many@1
more@1
of@2
once.@1
one@1
only@1
Some@2
than@1
the@2
This@1
time.@1
with@1
words@2
words.@1
Posted by: Guest on April-25-2021

Code answers related to "Word frequency list (Index) for a file"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language