Convert dirnames from upper to lower case on linux:


/ Published in: Bash
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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

You need to login to post a comment.