Write the command you would use to display the number of lin
Write the command you would use to display the number of lines that contain the word ‘winter’ in the file ~/MyBlog/blog.txt located in your home directory. The command should ignore the case of the letters.
Solution
Answer:
Below is the command, we can use to find the number of lines that contain the word \'Winter\' in the file with out case sensitive.
grep -i winter /MyBlog/blog.txt | wc -l
This statement will return the number of lines that contain the word \'Winter\' in the file
