while read product id features
do
printf "${product}, %s\n" ${features%#*}
done < Check_File
Your example was using only two variables (f1, f3) to read the fields but using a different one (f2) to print. You were also not deleting the comment at the end of each line.
Yes this works .
How to transfer the print output to another path or file Ex : /tmp/new_file
I tried using echo , but if i run the code multiple times , the results are getting appended with existing results and doubling up.
Instead of printing in below code - How to ensure the results here are moved to /tmp/new_file . Even with multiple runs , only the latest results should be moved to new/file.