this is sample csv file :
name,annotations,description
drgreghouse,princeton,"doctor,head"
sheldon,tbbt,"physicist,actor"
chandler,friends,"actor,comedian"
I am trying something like this but it is reading only first values
INPUT="$(pwd)/data.csv"
IFS=','
sed 1d $INPUT |while read name annotations description; do
echo "$name $annotations $description"
done
O/p -
drgreghouse princeton "doctor
sheldon tbbt "physicist
chandler friends "actor
Expected O/p
drgreghouse princeton doctor,head
sheldon tbbt physicist,actor
chandler friends actor,comedian