Parsing Firefox history.dat file?

Alan Dayley alandd at consultpros.com
Mon Dec 31 16:40:26 MST 2007


Eric "Shubes" wrote:
> 
> Nice little exercise. I'm sure there are a myriad of ways to do this.
> 
> This is what I came up with (from directory containing history.dat):
> $ tr -d '\\\n' <history.dat | tr ')' '\n' | grep =http:// | cut -d = -f 2-
>> history.urls
> 
> It basically does this:
> 1) strips out all backslashes and newlines
> 2) replaces all close-parentheses with newlines
> 3) selects all lines containing =http:
> 4) cuts off the front of each line up through the first '='
> 
> When I run it, what appears to be in the history.url file is nothing but
> urls. How's it work for you?

Thank you.  I'll try it tonight.

Alan


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20071231/547b7b21/attachment.pgp 


More information about the PLUG-discuss mailing list