Skip to content

Instantly share code, notes, and snippets.

@flosse
Created December 6, 2019 13:24
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 flosse/3e9b7a53dfb51cc895d3dc8ddf23c931 to your computer and use it in GitHub Desktop.
Save flosse/3e9b7a53dfb51cc895d3dc8ddf23c931 to your computer and use it in GitHub Desktop.
#!/bin/bash
for f in `find src/ -type f \( -iname \*.js -o -iname \*.jsx \)`
do
git mv `echo $f` `echo $f | sed -e "s/\.jsx\?/\.rs/g"`
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment