dotfiles/.bin/OLD/rename_to_lowercase

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