Replace old rocket style ruby hash syntax with ruby-1.9 style bash script

November 9, 2016

  find . -name \*.rb -exec perl -p -i -e 's/([^:]):(\w+)\s*=>/:/g' {} \;
Replace old rocket style ruby hash syntax with ruby-1.9 style bash script - November 9, 2016 - {"name"=>"Stanislav Knyazev", "email"=>"extazystas@gmail.com"}