Created
April 15, 2015 14:13
-
-
Save AbigailBuccaneer/8da5dbaece3057bd86de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
start=$(pwd) | |
while read line; do | |
dirname=$(dirname "$line") | |
basename=$(basename "$line") | |
cd "$dirname" | |
lowercase=$(echo "$basename" | tr '[A-Z]' '[a-z]') | |
[ -e "$lowercase" ] || ln -s "$basename" "$lowercase" | |
cd "$start" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment