Tuesday, September 3, 2013

UNIX - Command to count the number of times a string appears in a file




grep -c "input_string" filename

1 comment: