adspace


What is grep|sort give example?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you edit a large file without opening it in unix?

988