3 # find all the directories at this height.
4 find . -mindepth 1 -maxdepth 1 -type d -exec echo {} ';' >$TMP/filestolink.txt
5 # make links with all lower case and all upper case versions of the names.
7 ln -s "$line" "$(echo $line | tr '[:upper:]' '[:lower:]')"
8 ln -s "$line" "$(echo $line | tr '[:lower:]' '[:upper:]')"
9 done < $TMP/filestolink.txt
11 \rm $(find . -type l ! -exec test -e {} \; -print)