What is grep|sort give example?
Answer / Avadhesh Pratap Singh
grep is a command-line utility that searches through files for lines containing a matching pattern. sort is a Unix command used to sort the contents of a file or output from other commands. Example: grep 'pattern' file.txt | sort will search the file file.txt for lines containing the specified pattern and then sort the results.
| Is This Answer Correct ? | 0 Yes | 0 No |
What a pipe?
How to get the nth word of a line in Unix?
What are system variables in unix?
Suppose you have a scheduling chain where the process 1 is a predecessor of the process 2 and both of them are scheduled every Monday at 8.00pm. Will I find execution log of process 1 every Tuesday morning? And what about the other one? Why?
How do you make programs portable on unix and dos under such circumstances?
How does unix pipe work?
What is Thread dump in unix?
What are hidden files in unix?
What is unix full form?
How to create a blank file in unix?
List a few significant features of unix?
How does unix file system work?