rayzor
annotate util/fixcase @ 3:9035507275d6
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 05 Apr 2014 20:53:44 +0300 |
parents | |
children | 18bdbcbaee81 |
rev | line source |
---|---|
nuclear@2 | 1 #!/bin/sh |
nuclear@2 | 2 |
nuclear@2 | 3 for i in src/* util/*; do |
nuclear@2 | 4 if echo $i | grep '[A-Z]' >/dev/null; then |
nuclear@2 | 5 fixed=`echo $i | tr '[:upper:]' '[:lower:]'` |
nuclear@2 | 6 echo "\"$i\" -> \"$fixed\"" |
nuclear@2 | 7 mv "$i" "$fixed" |
nuclear@2 | 8 fi |
nuclear@2 | 9 done |