On 6 August 2012 21:35, Jacob Nordfalk <[email protected]> wrote:
>
>
> 2012/8/6 Jimmy O'Regan <[email protected]>
>>
>>
>> I've looked a little at the rules, and they are indeed unreasonably
>> long, and - I speculate - written while under the influence of some
>> potent combination of hallucinogens and stimulants. I think I can
>> macro-ify that horrific mess, but it might take a while.
>>
>
> Author who is guilty of https://gist.github.com/3278030 has definately
> smoked way too much copy-phashis :-)
>
LOL.
So...
cat rule98.rule |perl -ane
'chomp;if(/<out/){$r=1;(!$c)?$c=1:$c++;}if(m!</out!){$r=0;};print
"$c\t$_\n" if($r);'
gives 145 different <out> sections. Which would explain why the code
is so large. (Yes, I know grep '<out>' file|wc would have been easier,
but I'm trying to group the subsections by their output. If you can
make a narcotics quip about that perl 1-liner, go nuts :)
--
<Sefam> Are any of the mentors around?
<jimregan> yes, they're the ones trolling you
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff