firefox_etiket_liste

This commit is contained in:
milisbir 2018-01-22 04:30:04 +02:00
parent d51b9830d2
commit 78d71c7703
1 changed files with 13 additions and 0 deletions

13
bin/firefox_etiket_liste Executable file
View File

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