Computer Science - Unix - Discussion

Discussion Forum : Unix - Section 1 (Q.No. 7)
7.
Which of the following keys is used to replace a single character with new text?
S
s
r
C
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
10 comments Page 1 of 1.

Manish Agrawal said:   1 decade ago
It is referring inline command (i.e start with esc and colon).

Ex1: s/+/ /g.

This command replace all plus (+) sign present in the file with space.

Ex2: s/I/You/g.

This command replace all "I" present in the file with "You".

Bishu Moharana said:   1 decade ago
This is a question about VI Editor.
So when you want to replace single character with multiple character at that time we use 's'.
So when you want to replace single line with another line at that time we use 'S'

Swapnil said:   9 years ago
It should be 'r'. After replacing with single character vi returns to command mode, so 'r' is more accurate than s.

A.Anandaraman said:   1 decade ago
sed -i 's/ugly/beautiful/g' text.txt

text.txt is the input file.

Here s is used to replace the characters.

Naresh said:   1 decade ago
I want to know about UNIX clearly. So, Where should I get the complete information? any one please tell me.

Hiren said:   1 decade ago
Search google like beginner unix you will get good result to learn.

Ganesh said:   1 decade ago
Can't understand just by switch. Please write the command.

Shweta said:   1 decade ago
Can't understand the question please clarify.

Reena said:   1 decade ago
Please explain this.

Sumit said:   1 decade ago
Please explain this?

Post your comments here:

Your comments will be displayed after verification.