Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: help substitute between quotes

by Kenosis (Priest)
on Jan 23, 2014 at 04:39 UTC ( [id://1071690]=note: print w/replies, xml ) Need Help??


in reply to help substitute between quotes

The following worked in Linux:

perl -pi.bak -e 's/(?<=UNIT_NAME )""/"DESIGN"/g'

And this in Windows using cmd.exe (even though the escaped quotes are like yours):

perl -pi.bak -e "s/(?<=UNIT_NAME )\"\"/\"DESIGN\"/g"

Replies are listed 'Best First'.
Re^2: help substitute between quotes
by mailsrikanth007 (Initiate) on Jan 23, 2014 at 07:05 UTC

    Thanks for the reply!! It worked.

      You're quite welcome!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-04-19 15:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found