password_paper: fix ^ char

This commit is contained in:
nemunaire 2019-12-12 18:42:50 +01:00
parent a475617657
commit f3f14dcd25
1 changed files with 2 additions and 2 deletions

View File

@ -48,8 +48,8 @@ ID=0
while read LINE
do
ID=$(($ID + 1))
NAME=$(echo $LINE | cut -d : -f 1 | sed 's/&/\\&/g;s/%/\\%/g;s/\$/\\$/g;s/#/\\#/g;s/_/ /g;s/{/\\{/g;s/}/\\}/g;s/~/\\textasciitilde{}/g;s/\^/\\\\textasciicircum{}/g')
PASS=$(echo $LINE | cut -d : -f 2- | sed 's/&/\\&/g;s/%/\\%/g;s/\$/\\$/g;s/#/\\#/g;s/_/\\_/g;s/{/\\{/g;s/}/\\}/g;s/~/\\textasciitilde{}/g;s/\^/\\\\textasciicircum{}/g')
NAME=$(echo $LINE | cut -d : -f 1 | sed 's/&/\\&/g;s/%/\\%/g;s/\$/\\$/g;s/#/\\#/g;s/_/ /g;s/{/\\{/g;s/}/\\}/g;s/~/\\textasciitilde{}/g;s/\^/\\\^{}/g')
PASS=$(echo $LINE | cut -d : -f 2- | sed 's/&/\\&/g;s/%/\\%/g;s/\$/\\$/g;s/#/\\#/g;s/_/\\_/g;s/{/\\{/g;s/}/\\}/g;s/~/\\textasciitilde{}/g;s/\^/\\\^{}/g')
echo "\\zz{$ID}{$NAME}{$PASS}"