Bash Script To Rename File Name To Lowercase

Létrehozva: 2019. január 16. - 10:00
This post thumbnail

This script use tr command to convert uppercase file name to a lowercase file name.

Bash script:

#!/bin/bash
for filename in *
do
   n=`echo $filename | tr '[:upper:]' '[:lower:]'`
   mv $filename $n
done