no need for scripts yet, come back to this

This commit is contained in:
Zeeshan Lakhani 2014-03-05 09:54:39 -05:00
parent 6c62f97b8f
commit b5408c3a92

View File

@ -1,15 +0,0 @@
#! /bin/bash
find -E . -regex '.*(pdf)$' -type f | while read f
do
p="$(basename "$f")"
dir="$(dirname "$f")"
lc=$(echo ${p} | tr '[:upper:]' '[:lower:]' \
| tr '_' '-' | tr -d ':' | tr -d ',' | tr '[:blank:]' '-' \
| sed 's/\-\-*/-/')
if [ "$p" != "$lc" ]
then
git mv -f "$dir/$p" "$dir/$lc"
fi
done