What is grep|sort give example?



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

Post New Answer

More Unix General Interview Questions

What a pipe?

1 Answers  


How to get the nth word of a line in Unix?

1 Answers  


What are system variables in unix?

1 Answers  


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?

1 Answers   Accenture, IBM,


How do you make programs portable on unix and dos under such circumstances?

1 Answers  


How does unix pipe work?

1 Answers  


What is Thread dump in unix?

1 Answers  


What are hidden files in unix?

1 Answers  


What is unix full form?

1 Answers  


How to create a blank file in unix?

1 Answers  


List a few significant features of unix?

2 Answers  


How does unix file system work?

1 Answers  


Categories