> Please excuse this lame non Debian specific question. Is there a simple > way to change all filenames in a directory so they are lowercase? I would > like to change all the *.cpp and *.h files in a project directory to be > lowercase letters only. I know this seems like a lame task but it would > simplify working on some of my source at home on Linux. I use Windoesn't > 4.0 at work which retains name case but doesn't use it.
In csh/tcsh: foreach file (*.h *.cpp) mv $file `echo $file | tr A-Z a-z` end In sh/bash: for file in *.h *.cpp ; do mv $file `echo $file | tr A-Z a-z` done And please don't call UNIX stupid, OK? Alex Y. -- _ _( )_ ( (o___ +-------------------------------------------+ | _ 7 | Alexander Yukhimets | \ (") | http://pages.nyu.edu/~aqy6633/ | / \ \ +-------------------------------------------+ -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null