Posted By

maphew on 03/06/09


Tagged


Versions (?)

Convert dirnames from upper to lower case on linux:


 / Published in: Bash
 

Adapted from http://www.unix.com/shell-programming-scripting/3799-uppercase-lowercase.html#post12536

  1. for each in `ls -d *`;
  2. do newname=`echo $each | tr [A-Z] [a-z]`;
  3. mv $each $newname;
  4. done

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: Dorgendubal on March 6, 2009

Try this: rename 'y/A-Z/a-z/' *

Posted By: maphew on March 10, 2009

heh, thanks :)

You need to login to post a comment.