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

Re: Want to do One line Perl Command

by Neutron Jack (Pilgrim)
on Jul 03, 2004 at 15:36 UTC ( [id://371611]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Want to do One line Perl Command

Here's a different approach:
perl -0ne 'unlink /.+\n(?:Errors$)+|(.+)/mg'

Replies are listed 'Best First'.
Re^2: Want to do One line Perl Command
by muba (Priest) on Jul 05, 2004 at 07:08 UTC
    Hmm... I just don't see why it's so important to you to have a perl -ne style one-liner. What's wrong with a script which can do the job easier and more readable than a one-liner?
    "2b"||!"2b";$$_="the question"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://371611]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.