Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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 ( [id://1108121]=note: print w/replies, xml ) Need Help??


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

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>
  • Comment on Re^2: Make a perl script by taking specific lines from a txt file

Replies are listed 'Best First'.
Re^3: Make a perl script by taking specific lines from a txt file
by Anonymous Monk on Nov 22, 2014 at 19:42 UTC
    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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1108121]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-25 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found