Sometimes I would like to find a bookmarked URL for pasting it to a friend to Jabber (mcabber). Loading Firefox for that, then immediately closing it seems hugely overkill, I'd rather have a Linux CLI app that dumps all bookmarks to stdout and filter the results through grep. Of course, I can solve this by giving up completely on using bookmarks in Firefox and just save links to a simple text file, but I already have many ones.
Is there such a CLI app that can process a Firefox profile and dump bookmarks?
Should I instead aim to try automating somehow the export of Firefox bookmarks to a simpler (ideally plain text) format when it closes?