Lowercase Filenames
One-liner to lowercase all filenames in the current directory (bash flavor):
for f in *; do mv $f `echo $f | tr '[:upper:]' '[:lower:]'`; done
References: Shell Programming; Advanced Bash-Scripting Guide
One-liner to lowercase all filenames in the current directory (bash flavor):
for f in *; do mv $f `echo $f | tr '[:upper:]' '[:lower:]'`; done
References: Shell Programming; Advanced Bash-Scripting Guide
TrackBack URL for this entry:
http://bradchoate.com/mt/feedback/tb/43
This article was published on July 22, 2002 11:04 AM.
The article previously posted was Action Comics Number 1.
The next article is PHP 4.2.2.
Many more can be found on the home page or by looking through the archives.