On Tuesday 12 Aug 2003 1:43 pm, Todd Slater wrote:
> When I do for loops I do it like this:
>
> for i in *.ogg
> do
>       mv "$i" someothername.ogg
> done
>
> the main difference being that the first "i" is not a variable as you
> have it written; I don't know if having "do" on a new line makes any
> difference or not.
>
> Todd

OK! got it working! The mystical incantation is:
  for i in *.ogg
  do mv "$i" "`echo $i|sed 's/\([_ ]\)\([a-z]\)/\1\u\2/g'`"
  done

There's all three types of quote in there, and they are not 
interchangable. Meditation will bring enlightenment.

Thank-you, Todd

-- 
Richard Urwin

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to