LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Re: text processing gotcha

[ILUG] Re: text processing gotcha

paul at clubi.ie paul at clubi.ie
Fri Jun 30 16:27:30 IST 2006


On Fri, 30 Jun 2006, Francis Daly wrote:

> On 30/06/06, paul at clubi.ie <paul at clubi.ie> wrote:
>> On Thu, 29 Jun 2006, Ray Kelly wrote:

>> > The basic way that this is now formatted is
>> > Date   {cr}
>> > {tab}  RX  {tab} rx_figure {cr}
>> > {tab}  TX  {tab} tx_figure {cr}
>> > {tab}  RXB {tab} RXB_figure {tab} (blah){tab} TXB {tab} TXB_figure {tab}
>> > (blah) {cr}

> It's better to trigger on end-of-record than start-of-record, as 
> that avoids off-by-one hassles.

Yep.

I didn't key on an EoR because I don't see any easy EoR in the above 
other than a !<list of non-EoR lines> conditional.

> It makes the whole thing simpler too:
>
> awk '{o=o $0}; /\)$/ {print o;o=""}'

That would, I thought, have missed the last '(blah)' line, but 
looking carefully at the format (rather than the example) there's 
only line one of those - Ray sent his mail (with long lines) as 
text/flowed so my MUA line-wrapped the example.

Apologies.

regards,
-- 
Paul Jakma	paul at clubi.ie	paul at jakma.org	Key ID: 64A2FF6A
Fortune:
"If I have trouble installing Linux, something is wrong. Very wrong."

 	- Linus Torvalds



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell