Skip to content

Instantly share code, notes, and snippets.

@robinfang
Created December 7, 2015 13:56
Show Gist options
  • Select an option

  • Save robinfang/24e08e435e3d2418823f to your computer and use it in GitHub Desktop.

Select an option

Save robinfang/24e08e435e3d2418823f to your computer and use it in GitHub Desktop.
find ./txt -type f -name '*.tmp' -exec sh -c 'mv "$0" "${0%.txt.tmp}.txt"' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment