
anujoamon
New User
Dec 5, 2012, 1:53 PM
Post #1 of 3
(443 views)
|
|
grep or filtering in perl
|
Can't Post
|
|
HI, I am a beginner for perl usage. I have a file that has multiple lines. For me the two lines of use are : ..... blah .... blah .... The tool described : Hammer ..... blah .... blah .... See Also : Wrench screw pliers nail ..... blah .... blah .... I want to assign a variable to 4th variable (Hammer) based of the search string "the tool described" and an array for the See Also list (Wrench, screw, pliers, nail) based on the search string see also I was trying to do such scripting with shell first, but want to move to perl because of its pros. Thanks is advance.
|