The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
sort command - alphanumeric
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
sort command - alphanumeric
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
08-29-2006
Glenn Arndt
Anomalous Lurker
Join Date: Feb 2006
Location: Indianapolis, IN
Posts: 255
If they all actually begin with "fred":
Code:
echo "fred1 fred2 fred10 fred11" | sort -k1.5n
Yields
Code:
fred1 fred2 fred10 fred11
Glenn Arndt
View Public Profile
Visit Glenn Arndt's homepage!
Find all posts by Glenn Arndt
Find Glenn Arndt's past nominations received
Find Glenn Arndt's present nominations given