how to update a .csv file?

Hi everyone,

im a newbie so plz bare with me, i have this txt file which contains an output of a query from oracle. now i copied the string inside this txt file in a .csv file. i used this command in doing this process:
echo "Fatal alerts:", $(cat a.txt) > test.csv

now what i want to do is update the same .csv file (test.csv) by adding a new record in the next row. is this possible in unix? if so please help me!

imagine the test.csv file having this output:
_______________________
1|Fatal alerts: | no rows selected
2|_________|_____________

upon updating, i want the csv file to look like this:

_______________________
1|Fatal alerts: | no rows selected
2|Stuck alarms: | 200

Please HELP ME!!

Hi, This links may be usefull for you:

regards