Pages

Tuesday, November 12, 2013

Sort numbers using sort command

Sort numbers using sort command :

sort command enables to sort numbers.

Sort shall be done w.r.t Alphabetically or numerically.

Alphabetically:

cat FileName | sort

Numerically:

cat FileName | sort -n
 
More details regarding Sort command is available here.

http://en.wikipedia.org/wiki/Sort_%28Unix%29

No comments:

Post a Comment