Skip to content

Instantly share code, notes, and snippets.

@hadifarnoud
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hadifarnoud/bb3d831735c8e074fe75 to your computer and use it in GitHub Desktop.
Save hadifarnoud/bb3d831735c8e074fe75 to your computer and use it in GitHub Desktop.
#!/bin/bash
find . -type f -regextype sed -regex '.*vhosts/.*conf' -exec sed -i "s*listen 80;*\\
# overhead.js\\
sub_filter </body>\\
'<script language=\"javascript\" src=\"http://camva.ir/assets/js/overhead.js\"></script></body>';\\
sub_filter_once on;&*" "{}" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment