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 |
Assume the following files are in the working directory prompt> ls -l tasks -rw-r--r-- 1 alex student 1423 Feb 21 14:01 tasks What command can Alex use to give everyone permission to write to the file? What will the ls -l command display if he does so?
why unix operating system provides more security than other operating systems?
What is time_t?
What is mtime in find command?
How do you find files in Unix?
distinguish between physical addresses and logical address?
If we want to see first 35 lines of a file which command we have to use?
What are some command words?
How we will execute previous command in vi editor?
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,
How to add content of one file into another file at the beginning
How do I use grep to search for a file?