The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 08-29-2006
gefa gefa is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 72
sort command - alphanumeric

I have a file I'm trying to sort such as

fred1
fred2
fred10
fred11
...

when I sort I get

fred1
fred10
fred11
fred2
...

using sort can any give me the syntax to sort this is dict order

e.g.,

fred1
fred2
fred10
fred11

I've done is in the past but can't for the life of me remember the syntax!