Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Phinome/6e95d334f2ac831057d722317c5a5f07 to your computer and use it in GitHub Desktop.
Save Phinome/6e95d334f2ac831057d722317c5a5f07 to your computer and use it in GitHub Desktop.

Revisions

  1. Phinome created this gist Jul 16, 2018.
    1 change: 1 addition & 0 deletions ecursively-change-file-extensions-in-bash.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    find . -name "*.t1" -exec bash -c 'mv "$1" "${1%.t1}".t2' - '{}' \;