in reply to Make a perl script by taking specific lines from a txt file

I would like to write a script!
So, what's the problem?
  • Comment on Re: Make a perl script by taking specific lines from a txt file

Replies are listed 'Best First'.
Re^2: Make a perl script by taking specific lines from a txt file
by nimpoura (Initiate) on Nov 22, 2014 at 19:29 UTC
    I want to make a script in order to read from the parameter file(txt) that i wrote first, which contains some lines with this form
    <query> <type>indri</type> <number>i</number> <text>Falkland petroleum exploration</text> </query>
    . Based on the number of number field(<number>i</number>) i want to run for example /home/nikol123/indri-5.6/runquery/IndriRunQuery <parameter_file> (command written in terminal) for i=351 with parameter file which contain only
    <parameters>
    <index>/home/nikol123/indri-5.6/4collections</index>
    <query> <type>indri</type> <number>351</number> <text>Falkland petroleum exploration</text> </query>
    <fbDocs>10</fbDocs>
    </parameters>
    ,namely ignore the other lines that are specified by different <number>i</number>
      I want to make a script
      Since it's 'really urgent' I guess you already wrote most of it... just show us what you've got so far.