Camel-casing a 'dashed' string

خرید بک لینک

I'm fairly inexperienced with *nix scripting, and I have a need to take a string with lowercase words separated by dashes and convert that to a new string with the dashes removed, and the first letter after each original dash uppercased. For example, I want to take

one-two-three-four-five

and convert it to

oneTwoThreeFourFive

The solution must be able to handle multiple dashes (including none), and can use other *nix utilities if necessary like sed, awk, etc.

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 220 تاريخ: چهارشنبه 2 تير 1395 ساعت: 18:38

صفحه بندی