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?
Discussion:
10 comments Page 1 of 1.
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.
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".
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".
Hiren said:
1 decade ago
Search google like beginner unix you will get good result to learn.
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.
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.
text.txt is the input file.
Here s is used to replace the characters.
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'
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'
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.
Sumit said:
1 decade ago
Please explain this?
Reena said:
1 decade ago
Please explain this.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers