Thanks for all the answers! I actually tried something like this (the tee was
to put the output to file - is there a better way?):

karaf@root> config:list "(<my pid query>)" | grep service.pid | exec tee
/tmp/badconfigs.txt

Then this to create the commands (there were some weird characters in the
output):

sed --expression="s/.*=/config:delete/g;s/...$//g" badconfigs.txt 

which I could then feed into karaf.

One thing I noted - when I tried to add the "sed" expression to the karaf
command line the execution became very slow (even the tee slowed down karaf
a lot). I guess that is just a limitation of the implementation? Also is
there any way to pipe the commands into karaf directly for execution without
using a temporary file?

thanks in advance,
Gareth



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Bulk-Delete-Configurations-tp4033294p4033326.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to