UNIX
Programming and Technical
Programming
Why do we use sed command in UNIX?
[1] for replacing any text with another text
[2] for deleting file
[3] for creating directory
[4] None of above
Read Solution (Total 3)
-
- sed is basically used to edit something or replace one string to another inside a file.
Syntax-sed [options] '{command}' [filename]
example- let suppose a file1 in which we need to replace all strings of type cv to11
so we'll write as- sed 's/cv/11' file1
hence option [1] is correct. - 8 years agoHelpfull: Yes(2) No(0)
- 1 is the answer
- 8 years agoHelpfull: Yes(0) No(0)
- for replacing text with another text.
- 8 years agoHelpfull: Yes(0) No(0)
UNIX Other Question