password_paper: fix handling of ^
This commit is contained in:
parent
bcc598ebd5
commit
2fbe7a327e
@ -48,8 +48,8 @@ ID=0
|
||||
while read LINE
|
||||
do
|
||||
ID=$(($ID + 1))
|
||||
NAME=$(echo $LINE | cut -d : -f 1 | sed 's/\\/\\textbackslash{}/g;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/\\/\\textbackslash{}/g;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/\^/\\\\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')
|
||||
|
||||
echo "\\zz{$ID}{$NAME}{$PASS}"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user