dotfiles/.bin/rename_to_lowercase
2023-02-22 08:31:38 +01:00

10 lines
191 B
Bash
Executable File

#!/bin/sh
find . -maxdepth 1 -type f \
| while read line
do
original="$line"
lowercase="$(printf '%s' "$line" | tr '[:upper:]' '[:lower:]')"
mv -vf "$original" "$lowercase"
done