What is use of sed command?

Answer Posted / sujit

sed is use to replace a character string with a defferent
string

syntax of "sed"
sed s/oldstring/newstring/filename

example
sed s/sujit/ajit/abc.old>abc

it means string sujit change into ajit which placed in file
abc.old

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between grep and grep?

571


What is sed awk grep?

609


Explain how to use grep command to list find the records of a file containing 10 different strings?

598


What is “chmod” command?

568


What are bash commands?

601






What are the differences among a system call, a library function, and a unix command?

571


Enlist some filename manipulation commands in unix.

556


What is unix command line?

614


Write a command that will display files in the current directory, in a colored, long format.

689


What does the md command do?

578


What is command statement?

543


What do chmod command do?

606


Is ‘du’ a command? If so, what is its use?

639


What is the difference between awk and grep?

561


What is command substitution?

627