On Thu, 2003-07-31 at 11:35, Tony Green wrote: > On Thu, 2003-07-31 at 11:25, Oscar Plameras wrote: > > > $cat /appl/bin/mv.sh > > > > #!/bin/bash > > # rename files with uppercase names to lowercase > # V changed this bit to allow filenames as args > > for i in $* > > do > > mv $i `echo $i | tr '[A-Z]' '[a-z]'` > > done > > /appl/bin/mv.sh *jpg
Shouldn't the $* be "$@" to ensure that filenames with spaces works as well :-) -- Thanks KenF OpenOffice.org developer -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
