Skip to content

Instantly share code, notes, and snippets.

@NinoFloris
Created December 19, 2016 19:34
Show Gist options
  • Save NinoFloris/9e2fba0969652ef12d29d4712df4d64f to your computer and use it in GitHub Desktop.
Save NinoFloris/9e2fba0969652ef12d29d4712df4d64f to your computer and use it in GitHub Desktop.
Working sed loop command, old files are .bak
for i in *; do sed -i.bak 's/listen 443 ssl;/listen 443 ssl http2;/g' "$i"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment