#!/bin/sh
 #
 ## -------- convert upper to lower case ---------
 
 ls * | while read f
  do
    if [ -f "$f" ]; then
      if [ "$f" != "`echo \"$f\" | tr A-Z a-z`" ]; then
       #Note that 'This' will overwrite 'this'!
       mv -iv "$f" "`echo \"$f\" | tr A-Z a-z`"
      fi
    fi
  done
 
# Note the punctuation -- the backquotes are
# important! Remove any spaces from font names
# too.  Once the TrueType fonts are properly
# installed, you must create both fonts.dir
# and fonts.scale files. The following commands
# do this:
 
# This script needs to be placed in the
# directory with the font files.  Give it a
# name with lower-case letters because it is
# going to rename itself to lower-case anyway.

# If, when you execute the script, it gives you
# some cryptic error message for line 7, to the
# effect of &quot;binary operator expected&quot; then 
# check that none of your font file names have
# spaces in them.
 
# eof

