eliminating text with sed?
I have a document and I am trying to remove the square brackets and everything between square brackets. I think I should be able to do this with sed but I can't seem to figure it out...
using Linux bash
the text looks like this:
effective connectivity structural equation modeling [McIntosh et al., 1994] and
dynamic causal modeling [Friston et al., 2003] have
and I would like to remove the [ ] and everything in between to give:
effective connectivity structural equation modeling and dynamic causal modeling have
Any help would be greatly appreciated!