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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started