[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: End of hypocrisy ?



On Thu, 7 Aug 2014 15:28:08 -0400
Rob Owens <rowens@ptd.net> wrote:

 > I do miss the ability to grep my bookmarks.html file.  Maybe there's a
 > way to do it with sqlite, but I never learned.  
 > 
 > One thing that attracted me to Linux many years ago was that due to its
 > Unix heritage,

You use the SQL language... which also has a long heritage -- I think from the
1960s... It's fairly simple to produce queries. And there's no need to worry
about regex, which - IMO - is far more difficult.

So -- instead of 'grep' you would use sqlite3 [dbfile] [query]

To see what kind of things are stored in the firefox places database:
of course your .default file will most likely be named differently...
sqlite3 ~/.mozilla/firefox/tolgu73t.default/places.sqlite ".tables"

and to list bookmarks:
sqlite3 ~/.mozilla/firefox/tolgu73t.default/places.sqlite "select * from
moz_bookmarks"

If try this, you'll notice that the output looks 'nice' -- in that it seems
quite 'grep-able' ... And that's what's sorely missing from journald.

--Andrew


Reply to: