Skip to content

Instantly share code, notes, and snippets.

@foru17
Created August 4, 2015 03:18
Show Gist options
  • Save foru17/83259147330c253ab864 to your computer and use it in GitHub Desktop.
Save foru17/83259147330c253ab864 to your computer and use it in GitHub Desktop.
修改文件后缀
#修改文件后缀
for f in *.txt; do
mv -- "$f" "${f%.txt}.text"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment