Forum: CFEngine Help
Subject: Re: Exposing Amazon EC2 Meta Data to Cfengine
Author: rbcarleton
Link to topic: https://cfengine.com/forum/read.php?3,23133,23141#msg-23141

I did add one more thing.  I'm converting spaces to underscores, when they are 
found in the output of the curl command.  Now sed edits look like:

prefix=`echo ${i} | sed -e 's/\-/_/g' -e 's/\//_/g' -e 's/ /_/g'`
[...]
suffix=`echo ${r} | sed -e 's/\-/_/g' -e 's/\//_/g' -e 's/\./_/g' -e 's/ /_/g'`

Best,

   --Bruce

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to