Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Make a perl script by taking specific lines from a txt file

by Anonymous Monk
on Nov 22, 2014 at 19:01 UTC ( [id://1108118]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-23 11:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found