firefox_etiket_liste 445 B

1234567891011121314
  1. #!/bin/sh
  2. if [ $2 ];then
  3. _profil="~/.mozilla/firefox/$2"
  4. else
  5. _profil=$(cat ~/.mozilla/firefox/profiles.ini | grep 'Path=' | sed s/^Path=//)
  6. fi
  7. if [ $_profil ];then
  8. for fk in `echo "select fk from moz_bookmarks" | sqlite3 ~/.mozilla/firefox/${_profil}/places.sqlite`;do
  9. echo "select * from moz_places where id=$fk" | sqlite3 ~/.mozilla/firefox/${_profil}/places.sqlite | cut -d'|' -f2-3;
  10. done
  11. else
  12. echo "bir profil belirtin";exit 1
  13. fi