Commit 1ea04937 authored by Nico Schottelius's avatar Nico Schottelius

import an old rename script

Signed-off-by: default avatarNico Schottelius <nico@ikn.schottelius.org>
parent bbe2501c
#!/bin/sh
# Usage:
# cd /home/user/nico/Maildir/ethz/INBOX && find . -type d -exec ~/rename.sh {} \;
old="$1"
new="$(echo $old | tr '[A-Z]' '[a-z]')"
if [ "$new" != "$old" ]; then
if [ ! -e "$old" ]; then
echo "Skipping already renamed $old"
else
mv -v "$old" "$new"
fi
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment