I have a file .csv and would like to add information to it. The delimiter is ; .
I had an idea to do so but it didn't really work. It was :
cat file.csv | awk -F ";" '{ print ""$1" "$2" "$3 }' > temp.csv
cat temp.csv | while read info1 info2 info3
do
read -p 'Give another information : " INFO
echo "$info1 ; $info2 ; $info3 ; INFO" >> new_file.csv
done
Everything works except "read -p" within the "while"... I was wondering if I should try only using an awk command but I actually don't really master this command so....Maybe someone has an idea to help me with that problem.