Skip to main content
6 events
when toggle format what by license comment
Aug 23, 2022 at 16:42 comment added Jack Kinsella On OSX, look into installing gsed and using that instead. Works perfectly.
May 23, 2017 at 12:39 history edited CommunityBot
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Dec 9, 2014 at 10:51 comment added B Seven Apparently this doesn't work on OSX. I get foo uar uaz nonce.
Dec 9, 2014 at 4:49 comment added mikeserv This is not portable syntax - I think even the OSX version of sed will have difficulties w/ \b - I could be wrong about that though.
Dec 9, 2014 at 2:01 comment added B Seven This is what I was looking for. How can I use it in a function to operate on $1: function format { sed -e 's/-/ /g' -e 's/\b\(.\)/\u\1/g' }
Dec 9, 2014 at 1:03 history answered user4443 CC BY-SA 3.0