i need put empty value cell in csv file bash. add row , and of file. used input parameters like
echo "add name" read name echo "add country" read country echo "age" read age i use
(sed -i '$ '$name'\;'$country'\;'$age'\;;' file output
name country age but not have county, need put empty value. output be
name 24 thanks help.
you can use following syntax using csv (comma saperated)
echo "$name,$country,$age" >> file the above line gives empty cell in case if no entry given.
Comments
Post a Comment