-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
  • 193,181
  • 53
  • 473
  • 722
Jaimin
  • 141
  • 6
  • 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,943
  • 6
  • 35
  • 48