Skip to content

Instantly share code, notes, and snippets.

@AbigailBuccaneer
Created April 15, 2015 14:13
Show Gist options
  • Save AbigailBuccaneer/8da5dbaece3057bd86de to your computer and use it in GitHub Desktop.
Save AbigailBuccaneer/8da5dbaece3057bd86de to your computer and use it in GitHub Desktop.
#!/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