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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!