Kleinmacherei

Bevor ich nächstes mal wieder lange überlegen muss hier mal ein kleiner Einzeiler um alle Einträge in einem Verzeichnis in Kleinbuchstaben umzuwandeln:

for i in `ls|grep [[:upper:]]| xargs`; do mv $i `echo $i|tr [:upper:] [:lower:]`; done

Geht sicherlich auch eleganter, aber es hat funktioniert ;-)

  • del.icio.us
  • Digg
  • Google
  • TwitThis
  • Facebook
  • StumbleUpon
  • Technorati
  • MisterWong
  • E-mail this story to a friend!
This entry was posted in Computer stuff and tagged , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared.