How to display all the lines which ends with the word unix
in any
given file and sorts those lines in ascending order.
Asked
Active
Viewed 2,503 times
-1
-
And http://askubuntu.com/questions/163358/how-to-sort-lines-in-a-text-file-from-the-terminal – muru Jun 13 '16 at 19:39
1 Answers
3
Your command should be :
grep 'unix$' your_file | sort
Of course you shoud replace your_file
with the file you want to sort.

storm
- 4,973