Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux count number of times word appears in file

grep -o 'word' filename | wc -l
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linux #count #number #times #word #appears #file
ADD COMMENT
Topic
Name
6+7 =