Skip to content

Instantly share code, notes, and snippets.

@monkseal
Created May 24, 2023 16:20
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 monkseal/ed0f82f001e37b3b113b659806862aa1 to your computer and use it in GitHub Desktop.
Save monkseal/ed0f82f001e37b3b113b659806862aa1 to your computer and use it in GitHub Desktop.
Rename _test.py to test_...py
for f in *_test.py; do mv "$f" "$(echo "$f" | sed 's/_test.py/.py/' | sed 's/^/test_/')"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment