Re: Challenging Shell Script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: pgpJef8Y5eAcx.pgp
Description: PGP signature


[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux