Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
sed
# rewrite part of the file from variable
sed -i "/^write_files:/{
s/write_files://g
r $NET_RULES
}" $CLOUD_CONFIG_FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.