Skip to content

Instantly share code, notes, and snippets.

@coyotte508
Created July 1, 2012 15:38
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 coyotte508/3028770 to your computer and use it in GitHub Desktop.
Save coyotte508/3028770 to your computer and use it in GitHub Desktop.
Remove language _xx extensions to txt files
find . -name "*.txt" -exec bash -c "re=\$(echo {} | sed 's/_[A-Za-z-]*[.]txt/.txt/'); mv {} \$re" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment