My basic question is how to use a search term containing multiple different matches for one field in the command line interface of JabRef (e.g.
timestamp = 2017.04.20 or 2017.04.21). The help page does not discuss this case, and in fact, the example given,
(author=bock or title|keywords="computer methods")and not(author=sager) does not work for me.
I am currently trying to use the command line of JabRef to export entries in a custom format. I have this working for simple searches, but for searches where I want to include multiple options, I run into a problem.
java -jar C:/Path/To/Jabref/Jabref-3.8.2.jar --import C:/Path/To/Bibtex/file.bib,bibtex --exportMatches timestamp=2017.04.20,C:/Path/To/Export/File.customformat,customformat --nogui works as expected.
My current command is:
java -jar C:/Path/To/Jabref/Jabref-3.8.2.jar --import C:/Path/To/Bibtex/file.bib,bibtex --exportMatches timestamp=2017.04.20 or 2017.04.21,C:/Path/To/Export/File.customformat,customformat --nogui
If I use
or between the search terms, I get errors that JabRef is unable to open the file
2017.04.21. If I use
| between the search terms, I get the error that
2017.04.21 is not a recognized as an internal or external command, operable program, or batch file.
I am using Windows 10, Java version
1.8.0_121 and have tried this with both JabRef 3.8.2 and the 4.0.0 beta jar file.
Looking at the source code for
exportMatches, there seems to be mention of search terms with spaces, but I cannot figure out how to get this to work, and I am not a Java expert.