Bil Kleb wrote:
> ruby -pi -e "gsub(/underscore_style/, 'camelCase') *.rb
does that work?
else
how exactly would the complete line look?
I'd do something like
irb(main):006:0> "def foo_bar_baz".gsub /_./ do $&[1].chr.upcase end
"def fooBarBaz"
in a small program, for each file.
Tobi
--
* peace&love.
* http://www.pinkjuice.com/