Displaying 2 results from an estimated 2 matches for "instancepath".
2008 Nov 26
1
How to create a string containing '\/' to be used with SED?
...output is processed by R. The strings to be changed looks like:
"instance = /home/TSPFiles/TSPLIB/berlin52.tsp"
I normally use Sed for this kind of things. So, inside R I'd like to write
something like:
command <- paste("sed -i 's/^instance .*/instance = ", data$instancePath,
data$newInstance, "/' ", configurationFile, sep = "")
system(command)
This will overwrite the line starting with "instance " using "instance =
the_new_instance"
In the example I gave, data$instancePath = /home/TSPFiles/TSPLIB/ and
d...
2007 Jan 19
2
Newbee-Question General Syntax
...different services to manage so the problem described below is.. well,
you´ll see (or I´m damn ignorant, always a possibility..)
server-series A; service 1 (W instances)
service 2 (Y instances)
server-series B; service 1 (X instances)
service 2 (Z instances)
instances share basepath; differ in instancepath; share config/runningpath
serverA/service1/01/configpath
serverA/service1/02/configpath
serverA/service2/01/configpath
[...]
serverB/service1/01/configpath
serverB/service2/01/configpath
serverB/service2/02/configpath
how to define the difference in the instancepath? wildcards? evaluation
of in...