DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+1 =
Submit