Skip to content

Instantly share code, notes, and snippets.

@phatnguyenuit
Created October 4, 2019 03:38
Show Gist options
  • Save phatnguyenuit/3c1a9639304943e3469fbeb7cf788c23 to your computer and use it in GitHub Desktop.
Save phatnguyenuit/3c1a9639304943e3469fbeb7cf788c23 to your computer and use it in GitHub Desktop.
Update file name with bash script
for filename in **/__test__/*.test.tsx; do
mv $filename ${filename/.test/}
echo Updated $filename => ${filename/.test/}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment