what is the difference between SED and GREP ?
Which one is more better and why?

Answer Posted / basanth

grep has only pattern space since it can store only one line at a time but sed has pattern space and hold space.it can store more than one line at a time

Is This Answer Correct ?    13 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to sort the content of the file based on numeric values

1250


How many unix commands are there?

625


Differentiate cmp command from diff command.

586


Name the unix command to find how many days the server has been up.

600


What does the “echo” command do?

624






What is unix command?

584


What do chgrp command do?

590


What do know about tee command and its usage?

586


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


Does cp command overwrite files?

620


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

681


why metadb requires a seperate slice to create Solaris volume manager

2552


What is command statement?

541


What is awk used for?

616


What is sed awk grep?

603