I am new to sed and am trying to implement this answer on a mac. After some quick research I believe I have to convert the code to BSD sed. I haven't had much success looking into the BSD sed documentation and am looking for help on how to proceed.
I am new to sed and am trying to implement this answer on a mac. After some quick research I believe I have to convert the code to BSD sed. I haven't had much success looking into the BSD sed documentation and am looking for help on how to proceed.
-E
for extended regex.d
perl
in accordance to the accepted answer?