[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Filename case



> I'm using Debian .96 and have a need to change all the files in a   
> directory from uppercase to lowercase (ftp'ed from DOS).  Is there a   
> quick method or command to do this?

If you are using bash as a shell, or you switch into bash, you can use
the following:

	 for i in *;do mv $i `echo $i|tr '[A-Z]' '[a-z]'`;done


Jim

-- 
Jim Robinson <jimr@simons-rock.edu> - http://www.simons-rock.edu/~jimr/
Simon's Rock College.




Reply to: