My requirement is to read a column data from a file & save it in a variable for each row & process it. I am using the below code-
Leadlines="$TGTFILE/Error.txt">>$log_file
while read line
do
id = ` echo $line | cut -d "," -f1 `
email = ` echo $line | cut -d "," -f2 `
-----------
done
My data looks like-
00PZ00000012QumMAE,abc@hp.com
00PZ00000012OHPMA2,def@hp.com
00PZ00000012MgMMAU,ghi@hp.com
00PZ00000012OHdMAM,jkl@hp.com
Please let me know what is wrong,as my script gets stuck while saving the data in variables.