Member_2_4942450
asked on
Write the commands to display all of the lines in file networkProposal that begain wit hte string in "in the world. WINDOWS has many"
Wouldn't it be something like this
grep “in the world. WINDOWS has many” -n networkProposal
grep “in the world. WINDOWS has many” -n networkProposal
this is the Windows operating
system. And in the opinion
of many, one of the best
in the world. WINDOWS has many
capabilities that an enterprize requires.
It will even clean your windows.
Will wonders ever cease.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
good
Use the ^ symbol to specify the beginning of the line
For example if file.txt has
The dog and the cat.
the cat is grey
grep "the cat" file.txt
would match both lines, whereas
grep "^the cat" file.txt
would only match the line beginning with "the cat".