The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
47 views

sed how to do “or”

I have the following two lines that work ok: /\.to <\=/ s/<\=/be <\=/ /\.to_not <\=/ s/<\=/be <\=/ I would like to combine them and I tried: /\.to( |_not )<\=/ s/<\=/be ...
2
votes
2answers
201 views

sed - remove unmatched “}”, “)” or ']" (only for the line in question)

I have a file with a lot of lines Some of the lines end in unmatched braces, i.e. "}" This is only true for lines that contain ".to" How can I remove the unmatched braces with sed for ALL lines ...