Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: In place replace, ignoring between quotes

by aitap (Curate)
on Oct 26, 2013 at 07:52 UTC ( [id://1059807]=note: print w/replies, xml ) Need Help??


in reply to In place replace, ignoring between quotes

Another approach (not the fastest) relying on Text::ParseWords to split the command into "words" (hopefully) like shell does:
$ perl -MText::ParseWords=quotewords -nle 'print join " ", map { $_ eq + ";" ? "&&" : $_ } quotewords qr/\s+/, 1, $_' cd / ; /path/to/R/R_latest --vanilla --args "fName='rGSDPlan';jobCode= +682718;jobId=6827181;" < job682718.R > job_6827181.txt cd / && /path/to/R/R_latest --vanilla --args "fName='rGSDPlan';jobCode +=682718;jobId=6827181;" < job682718.R > job_6827181.txt

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-24 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found