#!/bin/bash # Usage # Export from Last Pass into CSV file pass.csv # Edit CSV file and delete first row # then join all broken note lines into one line # run # ./makepass pass.csv > i.txt # Import into pwsafe # creates tab delimited text SAVEIFS=$IFS IFS=, DELIM=$(printf "\u00BB") echo "URL Username Password Group/Title Notes" while read URL Username Password Notes entry_name Group_Title AutoType do group=$(echo $Group_Title | tr . $DELIM) entry=$(echo $entry_name | tr . $DELIM) notes=$(echo $Notes | tr '\n' $DELIM) echo "$URL $Username $Password $group.$entry \"$notes\"" done < $1