Unfortunately both the tricks did not work
here is the error I got for first one
cat /tmp/pass | sed -n -e "/^#/!d; s/^.* //; N; s/[[:space:]]/ /g; s/: */'/; s/[^[:alnum:]]*$/'/; p"
-bash: !d: event not found
And here is the output for second one
while read -r email;do zmprov ma "$email" userPassword "$(zmprov -l ga "$email" userPassword | grep -v '^$' |tail -n 1 |awk '{print $NF}')";done< /tmp/pass
ERROR: account.NO_SUCH_ACCOUNT (no such account: # name
1@xxx.com)
ERROR: account.NO_SUCH_ACCOUNT (no such account: # name
1@xxx.com)
ERROR: account.NO_SUCH_ACCOUNT (no such account: userPassword: {SSHA}CuBH3js8XM2PJ3/980hAMi8F+yhz/zp3)
ERROR: account.NO_SUCH_ACCOUNT (no such account: userPassword: {SSHA}CuBH3js8XM2PJ3/980hAMi8F+yhz/zp3)
ERROR: account.NO_SUCH_ACCOUNT (no such account: )