What is use of sed command?

Answer Posted / sumitabha das

sed is a multipurpose tool which combines the work of
several filters.

sed uses instructions to act on text.
AN instruction combines an address for selecting lines with
an action to be taken on then , as shown by the syntax

sed options 'address action' file(s)

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is awk good for?

582


How do I delete files from command prompt?

549


What are the unix commands?

555


What is “chmod” command?

562


What does the md command do?

568






When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1758


What does 'mkdir' command do in UNIX?

658


What is the function of grep command in unix?

583


What is the difference between cat and more command?

623


How do I use grep to find a file?

577


What is the command to find hidden files in the current directory?

579


What is $0 bash?

646


What is the difference between grep and grep?

563


Explain mount and unmount command.

611


Which unix command lists files/folders in alphabetical order?

614