Skip to content

Instantly share code, notes, and snippets.

@kaspermunch
Created July 5, 2023 14:15
Show Gist options
  • Save kaspermunch/e2d5ce3f7aa863155329c4cfb324af14 to your computer and use it in GitHub Desktop.
Save kaspermunch/e2d5ce3f7aa863155329c4cfb324af14 to your computer and use it in GitHub Desktop.
Change suffix on a bunch of files in a tree
for file in `find codeml/steps/codeml -name '*.txt'`; do
echo mv -- "$file" "$(dirname "$file")/$(basename -- "$file" .txt)_site.txt"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment