sed: need to replace text that lies within square backets. how?
I have a string that looks like so:
/path/to/foo.[001-500].bar
I want to make that string look like this:
/path/to/foo.*.bar
I can't seem to figure out how to escape the square brackets. I can do one or the other, but not both, and not the stuff inside them.
ideas?
|