The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Order sorting
.
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
:
Order sorting
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
12-04-2005
grahamb
Registered User
Join Date: Dec 2005
Location: Windsor, Ont Canada
Posts: 13
Quote:
Originally Posted by
Raom
Try this
echo "01 B D A C" | fold -2 |sort -b|xargs echo
Hi
To get rid of the spaces then add:
Code:
..... |
sed
's/ //g' echo "01 B D A C" | fold -2 |sort -b|xargs echo |
sed
's/ //g'
Regards
GrahamB
grahamb
View Public Profile
Find all posts by grahamb
Find grahamb's past nominations received
Find grahamb's present nominations given