Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Perl script to find particular string and save those lines in another file?

by aaron_baugher (Curate)
on May 05, 2015 at 05:39 UTC ( [id://1125671]=note: print w/replies, xml ) Need Help??


in reply to Perl script to find particular string and save those lines in another file?

You need to open the output file before you write to it. Move the "open (NEW" line up above the loop that prints to it.

Aaron B.
Available for small or large Perl jobs and *nix system administration; see my home node.

  • Comment on Re: Perl script to find particular string and save those lines in another file?
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 21:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found