Kris Reilly on 5 Jan 2005 17:23:09 -0000 |
Chris Mann wrote: I've a bunch of files that have lower case file names I need to convert to uppercase filenames in linux. Does anyone know of a tool or function that is able to do this en masse?
directories: for i in `find * -type d`; do mv $i `echo $i | tr "[A-Z]" "[a-z]"`;done files: for i in `find * -type f`; do mv $i `echo $i | tr "[A-Z]" "[a-z]"`;done -kar ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|