I'm trying to find a proper regex that matches the pattern "some_text".local for sed
("\w*?"\.local) does the job of finding "...".local match,
_(.)/\U\1 will find all underscores and replace it with upper case letter next to it.
But i don't know how to combine them together so the result would look like this:
self.title = "statistics_title".local
self.title = "title".local
->
self.title = L10n.statisticsTitle
self.title = L10n.title
I use find . -name "*.swift" -exec gsed -r -i 's/_(.)/\U\1/gi' {} + cmd to search and replace