/usr/bin/recursive_lower is in hxtools 20170430-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #!/bin/bash
#
# recursive_lower
# written by Jan Engelhardt, 2004-2007
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the WTF Public License version 2 or
# (at your option) any later version.
#
descend_into()
{
for src in "$@"; do
dest="`echo -en \"$src\" | tr A-Z a-z`";
mv "$src" "$id" && \
mv "$id" "$dest";
echo "$src" "->" "$dest";
if [ -d "$src" -o -d "$dest" ]; then
descend_into "$dest"/*;
fi;
done;
return;
}
id=`mktemp -u .tmp.$$.XXXXXXXX`;
descend_into "$@";
|