I have a file with 8 columns using | as a delimiter and I want to count the occurence frequency of the words in the 8th column. I tried awk like this
|
A cut based answer, (plus an bit of sed to surround items with quotes, the better to make blank lines visible):
cut
sed
cut -d'|' -f8 "$FILE" | sed 's/.*/"&"/' | sort | uniq -c