Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

You are working on a documentation file userNotes.txt with some members of your software development team. Just before the file needs to be submitted, you

You are working on a documentation file userNotes.txt with some members of your software development team. Just before the file needs to be submitted, you manager tells you that a company standard requires that two blank spaces be left between the end-of-sentence period (.) and the start of the next sentence. (This rule does not affect sentences at the very end of a line.)

For example, this is OK: Turn the knob. Push the on button.
This is not: Turn the knob. Push the on button.

Asking around among your team members, you discover that some of them have already typed their sentences in the approved manner, but others have inserted only a single blank between sentences.

You need to fix this fast, and the first thing you want to do is to find out how bad the problem is.

What command would you give to list all lines of userNotes.txt that contain sentence endings with only one blank before the start of the next sentence?

What command would you give to print (display on the screen) the corrected text of userNotes.txt with all sentence endings having required two blanks before the start of the next sentence?

LINUX

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students explore these related Databases questions

Question

Choosing Your Topic Researching the Topic

Answered: 3 weeks ago