-1

How to display all the lines which ends with the word unix in any given file and sorts those lines in ascending order.

muru
  • 197,895
  • 55
  • 485
  • 740
Jaimin
  • 141
  • 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 Answers1

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