[PLUG] sed regex corrections

David Fleck david.fleck at mchsi.com
Sun Aug 14 00:33:55 UTC 2016


On Sat, 2016-08-13 at 17:12 -0700, Rich Shepard wrote:
>    So, I tried writing a sed script, but my syntax is off:
> 
> /s/\([A-Z]\)\([A-Z]+\)/[A-Z]\L\2/g
> 
> and sed tells me: "sed: file uptomixed.sc line 1: unknown command: '\'"
> 
>    Please show me what I've done incorrectly.

Are we the only people here today?  Anyway, this works for me:

s/\([A-Z]\)\([A-Z]*\)/\1\L\2/g


Your line makes sense to me, but it doesn't work for me either. I'm not
sure why.






More information about the PLUG mailing list