You saved my a**! Rated 5 out of 5 stars

The "famous" Firfox 8.0 session manager failed again.
So I decided to extract the lost urls.

This will extract all of the urls from a firefox session (including urls in a tab's history). The sessionstore.js file is in ~/.mozilla/firefox/{firefox profile}:

sed -e "s/\[{/\n/g" -e "s/}, {/\n/g" sessionstore.js | grep url | awk -F"," '{ print $1 }'| sed -e "s/url:\"\([^\"]*\)\"/\1/g" -e "/^about:blank/d" > session_urls.txt

Then I cut the rest off surfed to the location and "pasted" it into tabs.

->#BookOfCoolPeople