Skip to content

Instantly share code, notes, and snippets.

@trigfa
Created February 21, 2016 15:18
Show Gist options
  • Save trigfa/c47f7e3dbfddf95657d8 to your computer and use it in GitHub Desktop.
Save trigfa/c47f7e3dbfddf95657d8 to your computer and use it in GitHub Desktop.
Replacing a string including a space and slashes using sed.
sed -i -- "s|/usr/bin/env python|/usr/bin/python|g" *.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment