UNIX Command Example: sort - Sort Content of File or Result Set

UNIX Command Example: sort - Sort Content of File or Result Set

Logon to UNIX command prompt then copy & past the bellow code to get some interesting result:

   sort -r -n country.txt | head -7
   Here "sort" is the command to Sort the content of a file or result set.
   "country.txt" is the file holding country list of the world.
   "| head -7" Display first 7 lines of Sorted content.
   If everything went well we should get some interesting result as follows:

UNIX Command Example: sort - Sort Content of File or Result Set - Output in the UNIX command prompt

No comments:

Post a Comment

leave your comments here..