Meshach has asked for the wisdom of the Perl Monks concerning the following question:
I have a file of BibTeX entries. Each one looks something like this:
The problem with grep is that it just returns the matching line, which doesn't do me much good at all.
I could store each entry in an array and search it, but that seems very wasteful, so I'm trying to avoid that aproach.
Thanks in advance.
Good day, Meshach
I need to run a search on the entries that will result in all the compleate entries matching the paramaters being in their own file. I know how to use files and grep, what I was wondering was what the best way of finding out what entry you're in is.@ARTICLE{klitzing:nobel, AUTHOR="Klaus von Klitzing", TITLE="The Quantized Hall Effect", JOURNAL=RMP, VOLUME=58, PAGES=519, YEAR=1986 }
The problem with grep is that it just returns the matching line, which doesn't do me much good at all.
I could store each entry in an array and search it, but that seems very wasteful, so I'm trying to avoid that aproach.
Thanks in advance.
Good day, Meshach
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Searching BiBTeX
by Abigail-II (Bishop) on Jul 22, 2002 at 16:32 UTC | |
Re: Searching BiBTeX
by arturo (Vicar) on Jul 22, 2002 at 20:15 UTC |
Back to
Seekers of Perl Wisdom