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 -
Determine what process is listening on a port on Solaris, without lsof Image by Metsuke iLife via Flickr $ for x in... -
Calculations This is the third part of a seven-part article on...
Related Websites - Check the Health of Your Company Pension Plan If you are one of the dwindling number of employees...
- Installing Multiple Instances of Zimbra Desktop in Linux Yahoo! Zimbra Desktop is almost reaching full release status, but...

![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)























