

[Bash] Rename Files in Directory to Lowercase
source link: http://siongui.github.io/2016/04/25/bash-file-name-to-lowercase/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

[Bash] Rename Files in Directory to Lowercase
April 25, 2016
Convert the name of files in directory to lowercase via Bash script.
#!/bin/bash # $1 is the directory in which files to be renamed to lowercase for path in $(find $1 -type f) do dir=$(dirname ${path}) file=$(basename ${path} | tr "[:upper:]" "[:lower:]") mv ${path} ${dir}/${file} done
Recommend
-
9
Have you ever wanted the ability to rename files in bulk instantly on Windows 10? PowerToys has your back with PowerRename, another amazing utility offered by the
-
18
README This is a mirror of
-
7
Rename Multiple Files in MacA powerful hidden feature in macOS | No need for extra plugins.Photo by Wesson Wang on
-
16
How to fix: npm ERR! enoent ENOENT: no such file or directory, rename I recently stru...
-
12
Batch rename nested files and folders on macOS with ZSH 20.03.2021 1 comment 353 days since last revision. Details have p...
-
4
Regarding linux cp same directory Similar files in another directory and rename? advertisements I need copy some zip files(...
-
8
[Bash] Convert Files in Directory From Big5 to UTF-8 March 18, 2016...
-
5
[Bash] List All Files in Directory Recursively and Rename February 02, 2015
-
5
[Bash] Remove Execute Permission of Files in Directory Recursively ...
-
5
September 30, 2022 /
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK