On Wed, Aug 13, 2003 at 12:32:53PM +1200, Christopher Sawtell wrote:
> On Wed, 13 Aug 2003 12:26, you wrote:
> > Hi all, I need to recursively rename a bunch of uppercase files to
> > lowercase files. This sounds like something that a tool may exist for, or a
> > simple script would do. Any ideas on the easiest way to to this?
> for f in `ls`
Use the shell's built in globbing:
for f in *; do
Also, you should use the $() construct rather than the deprecated ``
construct.
> mv $f $LC_FILENAME
The variables should be quoted--think about what would happen if a
filename had a space in it.
mv "$f" "$LC_FILENAME"
> You need to come on the Linux course being organised by the OSTC.
Heh.
Cheers,
-mjg
--
Matthew Gregan |/
/| [EMAIL PROTECTED]