- To: slug-chat@xxxxxxxxxxx
- Subject: Re: [chat] prob with regex
- From: Michael Lake <mikel@xxxxxxxxxxxxxxxxx>
- Date: Fri, 27 Jun 2003 14:12:21 +1000
- User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.0.0) Gecko/20020622 Debian/1.0.0-0.woody.1
invisible ink wrote:
> $ cat mike
> PAVEY AUASF020388
> PAVEY,A AUASF02389
> PAVEY,A AUASF02390
> PAVEY,A. AUASF02391
>
> $ sed "s/PAVEY.* \(AUASF.*\)/AUASF00899 \1/" < mike
> AUASF00899 AUASF020388
> AUASF00899 AUASF02389
> AUASF00899 AUASF02390
> AUASF00899 AUASF02391
Ah it worked for Colin too as he indicated in his email but for me it
doesnt.
> Are you using GNU sed?
Yes. GNU sed version 3.02 as comes with Debian.
So different behaviour, umm bugger. I prefer yours then :-)
--
Mike Lake
Caver, Linux enthusiast and interested in anything technical.
UTS CRICOS Provider Code: 00099F
DISCLAIMER
========================================================================
This email message and any accompanying attachments may contain
confidential information. If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments.
If you have received this message in error, please notify the sender
immediately and delete this message. Any views expressed in this message
are those of the individual sender, except where the sender expressly,
and with authority, states them to be the views the University of
Technology Sydney. Before opening any attachments, please check them for
viruses and defects.
========================================================================