From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arvind Subject: Re: Challenging Shell Script Date: Sat, 3 Sep 2005 18:38:17 +0530 Message-ID: <20050903130817.GA12805@localhost> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-admin-owner@vger.kernel.org List-Id: To: linux-admin@vger.kernel.org --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, > This list is in a text file items.txt as follow: >=20 > 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 --=20 Everyone is more or less mad on one point. -- Rudyard Kipling --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFDGaBBoaZeAZF2ZYcRAjYsAKCMtlcexeIa4qSeJGmaBBxtOnbxKwCfQ6tA /lE60YAcQUmTQX6q0WNzWKc= =+RU3 -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0--