rayzor
diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/util/fixcase Sat Apr 05 18:31:00 2014 +0300 1.3 @@ -0,0 +1,9 @@ 1.4 +#!/bin/sh 1.5 + 1.6 +for i in src/* util/*; do 1.7 + if echo $i | grep '[A-Z]' >/dev/null; then 1.8 + fixed=`echo $i | tr '[:upper:]' '[:lower:]'` 1.9 + echo "\"$i\" -> \"$fixed\"" 1.10 + mv "$i" "$fixed" 1.11 + fi 1.12 +done