Question: I need commands in linux that can do the following. a) Find if the file random contains the word homer. The expression should find a
I need commands in linux that can do the following. a) Find if the file random contains the word "homer". The expression should find a case-insensitive match
b) Find empty lines (no space) in a file. The character ^ denotes the beginning of the line and $ denotes its ending
c) Count number of empty lines (no space) in a file
d) To find all the lines that have letters
e) Find all the lines that ONLY have letters
f) Find all the lines that ONLY have letters and numbers
g) Find all lines that does not have numbers h) Find lines that have contents between a pair of square brackets
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
