Skip to content

Instantly share code, notes, and snippets.

@billybonks
Created March 29, 2020 11:45
Show Gist options
  • Save billybonks/48191c985e89721f487034c1557b5cb7 to your computer and use it in GitHub Desktop.
Save billybonks/48191c985e89721f487034c1557b5cb7 to your computer and use it in GitHub Desktop.
mass move stuff
for f in **/*.ts; do
mv -- "$f" "${f%.ts}.js"
done
for f in **/*.js; do
mv -- "$f" "${f%.js}.ts"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment