GNU recutils and regular expressions problem
by validator456 from LinuxQuestions.org on (#5R20G)
With the program GNU recutils you can create simple, text-based databases.
The manual can be found here: https://www.gnu.org/software/recutil...l#SEC_Contents
The command recsel is used to extract information from the database.
For instance, the following command gives you the entire file:
Quote:
The command recsel supports regular expressions with the -e option.
recsel -e "Title = 'Yeelong User Manual'" books.rec
What I want to do is to select the titles with "Manual" in it. But I can't find the right regular expression for it.
recsel -e "Title - 'Manual'" books.rec (this doesn't work, but notice that the dash is used)
All in all, it is just a regex problem. But I can't figure it out.
Your help is greatly appreciated.
The manual can be found here: https://www.gnu.org/software/recutil...l#SEC_Contents
The command recsel is used to extract information from the database.
For instance, the following command gives you the entire file:
Quote:
recsel books.rec Title: GNU Emacs Manual Author: Richard M. Stallman Publisher: FSF Location: home Title: The Colour of Magic Author: Terry Pratchett Location: loaned Title: Yeelong User Manual Location: home |
recsel -e "Title = 'Yeelong User Manual'" books.rec
What I want to do is to select the titles with "Manual" in it. But I can't find the right regular expression for it.
recsel -e "Title - 'Manual'" books.rec (this doesn't work, but notice that the dash is used)
All in all, it is just a regex problem. But I can't figure it out.
Your help is greatly appreciated.