1 #!/bin/sh 2 # 3 # copyright 2004 Gene Pavlovsky <heilong@bluebottle.com> 4 # 5 # this is free software; you can redistribute it and/or modify 6 # it under the terms of the GNU General Public License as published by 7 # the Free Software Foundation; either version 2 of the License, or 8 # (at your option) any later version. 9 # 10 # tmv-l: lower-case all files in path(s). 11 12 while test $# -gt 0 -a "${1:0:1}" = '-' -a "$1" != '--'; do 13 test -z "$options" && options="$1" || options="$options $1" 14 shift 15 done 16 test "$1" = '--' && shift 17 18 if test $# -lt 1; then 19 echo "Usage: $(basename $0) [tmv options] path [path]*" >&2 20 echo 21 echo "Rename all files in path(s) to lower-case." >&2 22 exit 1 23 fi 24 25 find "$@" -depth | tmv -l $options