rayzor

view util/fixcase @ 2:c273c6f799a4

added fixcase utility to fix the ftp-ed files' case on linux
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 05 Apr 2014 18:31:00 +0300
parents
children 18bdbcbaee81
line source
1 #!/bin/sh
3 for i in src/* util/*; do
4 if echo $i | grep '[A-Z]' >/dev/null; then
5 fixed=`echo $i | tr '[:upper:]' '[:lower:]'`
6 echo "\"$i\" -> \"$fixed\""
7 mv "$i" "$fixed"
8 fi
9 done