[Tutor] uncomprehension on RE

cedric briner work at infomaniak.ch
Fri Sep 21 08:56:32 CEST 2007


Stephen Nelson-Smith wrote:
> On 9/20/07, cedric briner <work at infomaniak.ch> wrote:
> 
>> To let you know, I'm writing a script to generate bind9 configuration
>> from a nis hosts table. So I was trying in a one re to catch from this:
>>
>> <ip> <hostname> [ <cname> ...] [# comment]
>> e.g:
>> 10.12.23.45 hostname1 alias1 alias2 alias3 # there is a nice comment
>> 37.64.86.23 hostname2
>> 35.25.89.34 hostname3 alias5
> 
> I'm not sure I follow.  Could you state explicitly what the input is
> (I think the above), and what output you want?
> 
> S.
> 

the input is
10.12.23.45 hostname1 alias1 alias2 alias3 # there is a nice comment
37.64.86.23 hostname2
35.25.89.34 hostname3 alias5

the ouput is
<ip> <hostname> [ <cname> ...] [# <comment>]



-- 

Cedric BRINER
Geneva - Switzerland


More information about the Tutor mailing list