a violet pig being the logo of this site

gbofavs – manage your favourite quotes

gbofavs allows you to keep a record of your favourite quotes together with a nice description.

Usage

gbofavs has four actions, which let you add, remove and list the quotes stored in the database:

  • add – Adds a new quote to the database. It takes at least on argument, specifying the id of the quote to add. Optionally you may specifiy a short description as second argument:

    gbofavs add 66128 "/tmp/powned"
    

    If the quote already exists, its description is updated.

  • remove – Removes the specified quotes from the database. Takes the ids to remove as argument. You must specify at least one id:

    gbofavs remove 66128
    
  • list – Lists all quotes in the database with id and description

  • ids – Lists only the ids of all quotes in the database. Useful in conjunction with gboquotes. The following will print all your favourite quotes on the terminal (assuming, you have a bash shell):

    gboquotes -i $(gbofavs ids)
    

By default the SQLite database is stored at ~/.gbo/favourites.db. You may use the -d option to use another database file:

-d DATABASE, --database DATABASE
Specifies the database to use.

Table Of Contents

Previous topic

gboquotes – retrieve quotes from GBO

Next topic

Downloads

This Page