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
awk -F '{print $8}' | sort | uniq -c $FILE
but I get instead a print of the whole file and I can't understand what I am doing wrong.
EDIT: Now I get printed what I want as below:
1
2307 Internet Explorer
369 Safari
2785 Chrome
316 Opera
4182 Firefox
but I can't understand where this "1" come from