In Linux,
1) All files in a directory
$ for f in *.JPG; do mv "$f" "${f%JPG}jpg"; done2) Files within subdirectory(ies) included
$ for f in `find -name "*.JPG" -type f`; do mv "$f" "${f%JPG}jpg"; doneTo learn more, go to Command line reference: Database and Operating Systems.
No comments:
Post a Comment