Write awk command to count the number of times each word occurs in a sorted list containning one wor



awk -F"|" '{kount[$3]++}
END {
            for( design in kount)
            print design,kount[design]
}'  emp.lst

Note: emp.lst is file name employee details





4 views0 comments

Recent Posts

See All