From: < (Ted Harding) Ted.Harding@nessie.mcc.ac.uk>
To: James Hatridge <James.Hatridge@epost.de>
Cc: Linux Newbies <linux-newbie@vger.kernel.org>,
SuSE List <suse-linux-e@suse.com>
Subject: RE: [SLE] Changing Text
Date: Fri, 16 Aug 2002 21:36:07 +0100 (BST) [thread overview]
Message-ID: <XFMail.020816213607.Ted.Harding@nessie.mcc.ac.uk> (raw)
In-Reply-To: <200208161802.56488.James.Hatridge@epost.de>
On 16-Aug-02 James Hatridge wrote:
> Hi all..
Hi Jim..
> OK, here's the problem I've got a file that looks like this:
>
> Rates as of 2002.08.13 20:25:28 UTC (GMT). Base currency is EUR.
> USD United States Dollars 1.01756
> 0.982743
> GBP United Kingdom Pounds 1.56297
> 0.639808
> AUD Australia Dollars 0.546791 1.82885
>
> What I want is this;
>
> 2002.08.13 USD 1.01756 0.982743
> 2002.08.13 GBP 1.56297 0.639808
> 2002.08.13 AUD 0.546791 1.82885
cat file | awk '
/Rates/{D=$4 ; next}
{n=NF; print D " " $1 " " $(n-1) " " $(n)} '
(or similar).
Cheers,
Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding@nessie.mcc.ac.uk>
Fax-to-email: +44 (0)870 167 1972
Date: 16-Aug-02 Time: 21:36:07
------------------------------ XFMail ------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
next parent reply other threads:[~2002-08-16 20:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200208161802.56488.James.Hatridge@epost.de>
2002-08-16 20:36 ` Ted Harding [this message]
2002-08-16 21:49 ` [SLE] Changing Text John Porter
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=XFMail.020816213607.Ted.Harding@nessie.mcc.ac.uk \
--to=ted.harding@nessie.mcc.ac.uk \
--cc=James.Hatridge@epost.de \
--cc=linux-newbie@vger.kernel.org \
--cc=suse-linux-e@suse.com \
/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