Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: Delete strings

by lakshmananindia (Chaplain)
on Apr 10, 2009 at 09:05 UTC ( #756776=note: print w/replies, xml ) Need Help??


in reply to Re^2: Delete strings
in thread Delete strings

Try executing as below

perl -i.bak -ne"print if "\$f" ||= /1\.0/" file

In unix the shell interprets the $f. So you were unable to execute.

--Lakshmanan G.

The great pleasure in my life is doing what people say you cannot do.


Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://756776]
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 2023-11-30 04:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?