Skip to content

Instantly share code, notes, and snippets.

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