#!/bin/bash
for NAME in $(cat gen.txt)
do
# echo $NAME
a1=$(echo $NAME | cut -d, -f1)
a2=$(echo $NAME | cut -d, -f2)
a3=$(echo $NAME | cut -d, -f3)
a4=$(echo $NAME | cut -d, -f4)
a5=$(echo $NAME | cut -d, -f5)
# echo $a1,$a2,$a3,$a4,$a5
echo "INSERT INTO qa.lime_old_tokens
( tid ,firstname ,lastname ,email ,emailstatus
,token ,language ,sent ,completed ,attribute_1 ,attribute_2 ,mpid)VALUES
('LAST_INSERT_I
D', '$a2', '$a4', '$
a...@student.nsysu.edu.tw', 'OK', NULL , 'zh-Hant-
TW', 'N', 'N', NULL
, NULL , 'NULL'); ";
done