Skip to content

Instantly share code, notes, and snippets.

@coyotte508
Created July 1, 2012 15:38
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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