11/21/2013

count the appearance times of string in file

When you want to count the appearance lines of one special string in a file, you may use

grep -o will-fined-string  /path/to/file | wc -l



No comments:

Post a Comment