Skip to content

Instantly share code, notes, and snippets.

@karlosmid
Created July 13, 2019 08:27
Show Gist options
  • Save karlosmid/0a794ee69269f85089739f61860906c2 to your computer and use it in GitHub Desktop.
Save karlosmid/0a794ee69269f85089739f61860906c2 to your computer and use it in GitHub Desktop.
sed command that I use for refactoring Python package paths that contain dot character.
sed -i -- 's/from tentamen\.tests\.models\./from tentamen\.tests\.database\.local\.models\./g' *.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment