I want to pass the exam.
Is the PowerPoint file ready?
This is the moment to pay the bill.
I want to pass the exam.
Is the PowerPoint file ready?
This is the moment to pay the bill.
$ grep "I want to
pass the exam.
Is the PowerPoint file ready?
This is the moment to pay the bill. [ I want to pass the exam. Is the PowerPoint file ready?
This is the moment to pay the bill.]" Q1.txt
here in the above grep we will be able to mark only and all underline parts, for the sentences present in Q1.txt file
we make use of [ ] brackets to find any part of the sentences given which is underlined in the file Q1.txt and the sentences written within " " double quotes will be marked as a whole ie all underlined parts of the given sentences.
-underline symbol is a special character and it does not have any meaning in grep command so we will use underline thing with the sentences given ie we underlined the sentences to be marked in the file.
Get Answers For Free
Most questions answered within 1 hours.