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

-- 
 ______                              
(_____ \                             
 _____) )  ____   ____   ____   ____ 
|  ____/  / _  ) / _  | / ___) / _  )
| |      ( (/ / ( ( | |( (___ ( (/ / 
|_|       \____) \_||_| \____) \____)
Kevin Waterson
Port Macquarie, Australia
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to