Friday, March 16, 2007

How to Batch Uppercase/lowercase file/directory

## under tcsh shell

# make the directory lowercase...
foreach f ( `find . -type d -print ` )
mv $f `echo $f | tr A-Z a-z`
end

# make the file lowercase...
foreach f ( `find . -type f -print ` )
mv $f `echo $f | tr A-Z a-z`
end

No comments: