dotfiles/.bin/OLD/rename_to_lowercase

10 lines
191 B
Plaintext
Raw Normal View History

2023-02-22 08:31:38 +01:00
#!/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