Link to home
Start Free TrialLog in
Avatar of Member_2_4942450
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

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.

Open in new window

Avatar of Tintin
Tintin

Lots of assignment questions being posted at the moment.

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".
ASKER CERTIFIED SOLUTION
Avatar of jonmchan
jonmchan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Member_2_4942450

ASKER

good