> Does anyone know how to write a shell script to change all the filenames
> in a directory to their lower-case values?
#! /bin/ksh
typeset -l new
for file in *
do
new=$file
test "$file" != "$new" && mv -i $file $new
done
--------------------------------------------------------------------
Warren Jones | To keep every cog and wheel is the first
Fluke Corporation | precaution of intelligent tinkering.
Everett, Washington, USA | -- Aldo Leopold
Everyone else posts the standard shell script to lowercase the names; the
adventurous will post Perl or AWK solutions, but the real answers, in order,
are:
1) Read the FAQ
2) Read the FAQ!
3) Read the FAQ!!
4) Read the FAQ!!!
5) Use the 'case' command in FTP, which is designed to do exactly
what you need.
************************************************************************
... and we thank you for your support.
- py...@quads.uchicago.edu, who is still costing the net
hundreds, if not thousands, of dollars, every time he posts -
************************************************************************
rwvpf wpnrrj ibf ijrfer