Let's say I have a file with many URLs:
http://foo.com/abc_(Programming_Language)
http://example.com/test)
I'd like to remove the trailing ) for each line in which there is no opening ( using sed and/or grep.
The result file should look like this:
http://foo.com/abc_(Programming_Language)
http://example.com/test
How can I do this?