List Word Occurrence for A Given Document

cat nautilus-debug-log.txt | tr -cs A-Za-z '\012' | tr A-Z a-z | sort
| uniq -c | sort -r -n | sed 25q

  2660 x
  2659 user
  2659 to
  2659 signal
  2659 log
  2659 dumped
  2659 due
  2659 debug
     1 milestones
     1 begin
     1

Posted via email from feinan’s posterous

Previous how do you list all users in linux Next grep on all the files in a directory

Comments are closed.