Skip to content

Instantly share code, notes, and snippets.

@resmo
Created September 11, 2015 07:10
Show Gist options
  • Select an option

  • Save resmo/a80d2010578434bc8b4f to your computer and use it in GitHub Desktop.

Select an option

Save resmo/a80d2010578434bc8b4f to your computer and use it in GitHub Desktop.
#!/bin/bash
cp ../ansible-modules-extras/cloud/cloudstack/cs_*.py .
str='from ansible.module_utils.cloudstack import *'
for i in $(ls cs_*.py); do
sed -i -e "/$str/r ansible_cloudstack_utils.py" -e "/$str/d" $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment