Posted By

brm on 06/21/15


Tagged

fun sysadmin


Versions (?)

Counting words in text file


 / Published in: Bash
 

Find & count how many words in some file

  1. #!/bin/sh
  2.  
  3. tr -sc 'A-Za-z' '\012' < filename.file | sort | uniq -c

Report this snippet  

You need to login to post a comment.