<div dir="ltr"><div><div><div>Hi,<br><br></div>I started to use Pass this week.<br></div>I wrote a bash script to import passwords from Firefox.<br></div><br>You export cvs file by using a extention called "Password Exporter" and then use this script to import passwords from the cvs file.<br><div><div><div><div><div><br><br><br>##################################<br><br>#!/bin/bash<br>#<br># Copyright (C) 2013 Shujie Zhang <<a href="mailto:zhang.shujie87@gmail.com">zhang.shujie87@gmail.com</a>>. All Rights Reserved.<br># This file is licensed under the GPLv3+. Please see COPYING for more information.<br>#<br># Usage:<br># Export cvs file from firefox by using extention "Password Exporter"<br># <a href="https://addons.mozilla.org/en-US/firefox/addon/password-exporter/">https://addons.mozilla.org/en-US/firefox/addon/password-exporter/</a><br># <br># You can test run it to check if bash syntax are OK: <br>#         ./firefox2pass.sh testrun CVS_FILE<br># Import to pass run as :<br>#         ./firefox2pass.sh import CVS_FILE<br># Feature:<br># * If username do not exist, use NONAME as username<br><br>args=("$@")<br><br>helptext=$'Usage:<br>You can test run it to check if bash syntax are OK: <br>        ./firefox2pass.sh testrun CVS_FILE<br>Import to pass run as :<br>        ./firefox2pass.sh import CVS_FILE<br><br>Feature:<br>* If username do not exist, use NONAME as username'<br><br><br>main(){<br>cat ${args[1]} | tail -n +3 | cut -f 1,2,3 -d , | sed "s/http.*\:\/\///g" | sed "s/\"//g"   |awk -F , -O '{ OFS = ","; print $1, $2, $3, $3 }' | sed "s/,,/,NONAME,/g" | sed "s/,/\//1" | sed "s/^/pass insert /g" | sed "s/,/\n/g"<br>}<br><br><br>if [ -z "${args[1]}" ] ; then<br>        echo "$helptext"<br>elif [ "${args[0]}" = "testrun" ]; then<br>        main<br>elif [ "${args[0]}" = "import" ]; then<br>        main | bash<br>else    echo "$helptext"        <br>fi<br><br><br>##########################<br></div></div></div></div></div></div>