How to get the no. of lines with a pattern
(This question has 2 correct answers, select both to score)
A grep -i "<PATTERN>" filename
B
grep -c "<PATTERN>" filename
C awk '/<PATTERN>/ {count++} END {print count}' filename
D
grep -o "<PATTERN>" filename
Answers
Answered by
0
we can get a new one and only takes a c program to fill out
Similar questions