macOS Sierra sed command different behaviour
jeanchlopez opened this issue · 2 comments
Do you need more detailed steps on an existing section? Please describe.
When running the lab content from a macOS 10.12 Sierra laptop sed does not behave as expected if we follow the instructions
Describe what you would like to see
Content currently shows the following
sed -i "s/cluster-28cf-t22gs/$CLUSTERID/g" cluster-workerocs-us-east-1a.yaml
sed -i "s/cluster-28cf-t22gs/$CLUSTERID/g" cluster-workerocs-us-east-1b.yaml
sed -i "s/cluster-28cf-t22gs/$CLUSTERID/g" cluster-workerocs-us-east-1c.yaml
Describe alternatives you've considered
sed -i "s/cluster-28cf-t22gs/$CLUSTERID/g" cluster-workerocs-us-east-1a.yaml
sed -i "s/cluster-28cf-t22gs/$CLUSTERID/g" cluster-workerocs-us-east-1b.yaml
sed -i "s/cluster-28cf-t22gs/$CLUSTERID/g" cluster-workerocs-us-east-1c.yaml
If using macOS Sierra 10.12 series use the following set of commands:
sed -i -e "s/cluster-28cf-t22gs/$CLUSTERID/g" cluster-workerocs-us-east-1a.yaml
sed -i -e "s/cluster-28cf-t22gs/$CLUSTERID/g" cluster-workerocs-us-east-1b.yam
l
sed -i -e "s/cluster-28cf-t22gs/$CLUSTERID/g" cluster-workerocs-us-east-1c.yaml
Additional context
N/A
Yes it is. Shall we close this one then.