Using sed to replace periods with single spaces to periods with double spaces
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
"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?"
This is the question I'm trying to answer using sed, but every attempt I try is wrong. It's possible I'm missing something, but the code I feel should work issed 's/. /. /g' userNotes.txt
It works but not I suppose in this context. The error response gives me:
No. That's not it.
For example, your command listed
All sessions have those characteristic three steps. If you are working on a PC where you are the only registered user, you might log in
where I was expecting
All sessions have those characteristic three steps. If you are working on a PC where you are the only registered user, you might log in
which has my two spaces as being too large. It's supposed to be a simple answer, but I don't believe it gets simpler than this. I also cannot use things like [[:space:]], awk, etc. just basic sed edit.
Thank you in advanced.
sed replace
New contributor
add a comment |Â
up vote
0
down vote
favorite
"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?"
This is the question I'm trying to answer using sed, but every attempt I try is wrong. It's possible I'm missing something, but the code I feel should work issed 's/. /. /g' userNotes.txt
It works but not I suppose in this context. The error response gives me:
No. That's not it.
For example, your command listed
All sessions have those characteristic three steps. If you are working on a PC where you are the only registered user, you might log in
where I was expecting
All sessions have those characteristic three steps. If you are working on a PC where you are the only registered user, you might log in
which has my two spaces as being too large. It's supposed to be a simple answer, but I don't believe it gets simpler than this. I also cannot use things like [[:space:]], awk, etc. just basic sed edit.
Thank you in advanced.
sed replace
New contributor
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
"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?"
This is the question I'm trying to answer using sed, but every attempt I try is wrong. It's possible I'm missing something, but the code I feel should work issed 's/. /. /g' userNotes.txt
It works but not I suppose in this context. The error response gives me:
No. That's not it.
For example, your command listed
All sessions have those characteristic three steps. If you are working on a PC where you are the only registered user, you might log in
where I was expecting
All sessions have those characteristic three steps. If you are working on a PC where you are the only registered user, you might log in
which has my two spaces as being too large. It's supposed to be a simple answer, but I don't believe it gets simpler than this. I also cannot use things like [[:space:]], awk, etc. just basic sed edit.
Thank you in advanced.
sed replace
New contributor
"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?"
This is the question I'm trying to answer using sed, but every attempt I try is wrong. It's possible I'm missing something, but the code I feel should work issed 's/. /. /g' userNotes.txt
It works but not I suppose in this context. The error response gives me:
No. That's not it.
For example, your command listed
All sessions have those characteristic three steps. If you are working on a PC where you are the only registered user, you might log in
where I was expecting
All sessions have those characteristic three steps. If you are working on a PC where you are the only registered user, you might log in
which has my two spaces as being too large. It's supposed to be a simple answer, but I don't believe it gets simpler than this. I also cannot use things like [[:space:]], awk, etc. just basic sed edit.
Thank you in advanced.
sed replace
sed replace
New contributor
New contributor
New contributor
asked 4 mins ago
Sammy
1
1
New contributor
New contributor
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sammy is a new contributor. Be nice, and check out our Code of Conduct.
Sammy is a new contributor. Be nice, and check out our Code of Conduct.
Sammy is a new contributor. Be nice, and check out our Code of Conduct.
Sammy is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f474953%2fusing-sed-to-replace-periods-with-single-spaces-to-periods-with-double-spaces%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password