Skip to content

Is this possible? #285

@elkarouh

Description

@elkarouh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-questionCategory: Further information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions