TOKENSS="${TOKENSS//\"/}"#replace double quote by nothing
#Remove carriage return!
printf"%s""$TOKENSS">tokens.txt
TOKENSS=$(cattokens.txt|sed's/\r$//')
if["$TOKENSS"=="null"];then
echo"Getting a login token failed."
exit
else
echo"CreateAccount token is $S"
echo"-----"
fi
mysql-uroot-toorxxxwikidb-e'SELECT rev_user_text, user.user_email, COUNT(*) AS CONTRIBS FROM revision JOIN user ON revision.rev_user = user.user_id GROUP BY revision.rev_user_text;'|whileread-rcolumn1usercolumn2emailvalue;