[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-admin
Subject:    Re: Challenging Shell Script
From:       Arvind <lists () duh-uh ! com>
Date:       2005-09-03 13:20:17
Message-ID: 20050903130817.GA12805 () localhost
[Download RAW message or body]

Hi,

> This list is in a text file items.txt as follow:
> 
> 500   screw driver philips
> 501   camera digital canon
> 502   laser printer samsung
> etc...

sed 's/\([0-9]*\) *\(.\)[^ ]* *\(.\)[^ ]* *\(.\).*/\2\3\4\1/' items.txt

I'll let you do the rest.

Arvind
-- 
Everyone is more or less mad on one point.
        -- Rudyard Kipling

[Attachment #3 (application/pgp-signature)]
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic