Extract all urls from the last firefox sessionstore.js file used.
| Hot: |

- Image via Wikipedia
Some taken from commandlinefu. What all the below commands are doing is basically that the url: is captured from the sessionstore.js file and then just extract the URL from the line. These are done in various ways using perl, sed and awk:
List last opened tabs in firefox browser
F=”$HOME/.moz*/fire*/*/session*.js” ; grep -Go ‘entries:\[[^]]*’ $F | cut -d[ -f2 | while read A ; do echo $A | sed s/url:/\n/g | tail -1 | cut -d\" -f2; done
extract all urls from firefox sessionstore
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”
Extract all urls from the last firefox sessionstore.js file used.
grep -oP ‘”url”:”\K[^"]+’ $(ls -t ~/.mozilla/firefox/*/sessionstore.js | sed q)
Extract all urls from last firefox sessionstore used in a portable way.
perl -lne ‘print for /url”:”\K[^"]+/g’ $(ls -t ~/.mozilla/firefox/*/sessionstore.js | sed q)
Extract all urls from the last firefox sessionstore.js file used.
sed -e ’s/{“url”:/\n&/g’ ~/.mozilla/firefox/*/sessionstore.js | cut -d\” -f4
Related articles by Zemanta
- file drag and drop in Firefox 3.6 (hacks.mozilla.org)
- Google Phone Get Its Own Holiday Game. Nexus One Users Only. (techcrunch.com)
- Remains of the Day: Don’t Expect Great iPhone Service Friday Edition [For What It's Worth] (lifehacker.com)
related post
- My Images
- Nature
- BDay Snaps
- Get the information on all the rpms installed on the system
- Bash Tips & Tricks
Related Posts -
Download with browse with bash and wget Been pretty busy for last couple of days. Will be... -
Linux Contractor Fired for Using Firefox/Linux Image via Wikipedia This is a complicated story but one...
Related Websites - Best Products for Healthy Fingernails In tough economic times, one of the first things that...
- Lots of Tool Tips Another Nutty Trick Let us say that you need to...

![Extract all urls from the last firefox sessionstore.js file used. Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_b.png?x-id=562c14c1-f6a8-4ab0-bc11-7edc99e79773)





























