Sunday, March 30, 2008

Awk Command to find the word frequencies in a text and sort them

#! /bin/sh -# finds the word frequencies in a text and sorts them by decreasing order (ie most frequent word at top)

awk -e '{print " " $0}' $1 deroff -w sort uniq -c sort -nr

2 comments:

Anonymous said...

How to kill a Job using Unix command and if you can add some helpful scripts would be great.

Anonymous said...

you can find the process id of the job and using the command

kill -9 PID
where PID is the process id.