Thanks to Kevin, Colin, Brett and Tony for their help doing the MS2Linux Website stuff. Kevin�s script was particularly useful.

Stu

Kevin Waterson wrote:

This one time, at band camp, Stuart Guthrie <[EMAIL PROTECTED]> wrote:



From the ThisMustHaveBeenDoneBeforeDept

GNU/Linux does. Is there a utility that can uncapitalise image file names, directory names and tags or should I write one?




#!/bin/sh
for file in $*
do
if [ -f $file ]
then
lcfile=`echo $file | tr [:upper:] [:lower:]`
if [ $file != $lcfile ]
then
mv -i $file $lcfile
fi fi
done


Kind regards
Kevin





--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to