What is grep and sed command?



What is grep and sed command?..

Answer / roshini

Grep is a line-based search utility and is used primarily to return lines from a file, or files, that match a particular search term. Sed is similar, as in it is a line-by-line style utility, but is meant more for string replacement within lines of text.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix Commands Interview Questions

in UNIX,How to copy file into directory?

5 Answers  


what is exact definition of operating system?

13 Answers  


what are the different commands used to create files?

5 Answers  


what are the different hardwares available?

1 Answers  


what are the different commands used to view the contents of a file?

5 Answers  






What does this command do,"$more readme.txt“?

0 Answers  


Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be highly appreciated...

27 Answers   CGI,


What are the commands in UNIX to list the files in a Directory?

0 Answers   CGI,


Hi All, Can you please let me know how to grep for a particular pattern in unix. I want to print the dates from the file exp.txt. the date pattern is DD:MM:YYYY, I just want to print all the dates from the file exp.txt.

8 Answers   Concentrix, IBM, Symantec, TCS,


Explain ‘library functions’ with respect to unix commands?

0 Answers  


How will you know who are the users logged in to the system before 15 minutes?

4 Answers   Amazon,


what is the use of "grep" command?

6 Answers   HCL,


Categories