linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arvind <lists@duh-uh.com>
To: linux-admin@vger.kernel.org
Subject: Re: Challenging Shell Script
Date: Sat, 3 Sep 2005 18:38:17 +0530	[thread overview]
Message-ID: <20050903130817.GA12805@localhost> (raw)
In-Reply-To: <BAY20-F23171679FF3273F56D5B449BA20@phx.gbl>

[-- Attachment #1: Type: text/plain, Size: 355 bytes --]

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 #2: Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2005-09-03 13:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-03  8:38 Challenging Shell Script vick Julius
2005-09-03 13:08 ` Arvind [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050903130817.GA12805@localhost \
    --to=lists@duh-uh.com \
    --cc=linux-admin@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).