I have a line
line=Note AAA: BBB: CCC:
I want to replace the ':' in all lines starting with Note with the character Z
This would make the 'sd : Z' conditional on the presence of 'Note'
Is this possible with sd ?
In sed, i would do"
sed '/^Note/s/:/Z/g' myfile
Many thanks
I have a line
line=Note AAA: BBB: CCC:
I want to replace the ':' in all lines starting with Note with the character Z
This would make the 'sd : Z' conditional on the presence of 'Note'
Is this possible with sd ?
In sed, i would do"
sed '/^Note/s/:/Z/g' myfile
Many thanks