I'd like to be able to use a tool like
grep to extract an entire bibtex reference rather than just the matching line.
grep Smith mydatabase.bib would return lines that contain the word
Smith. I'd like to have a command-line program that returned the entire bibtex reference that encloses the word
- How can this be done on the command-line?
In particular, I'd be interested in whether there is a way of using
awk to perform the task?