Posted By

maphew on 03/06/09


Versions (?)

Convert dirnames from upper to lower case on linux:

 / Published in: Bash

Adapted from

  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  


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.