Article 4ZNRT add query results in a csv in linux

add query results in a csv in linux

by
mierdatuti
from LinuxQuestions.org on (#4ZNRT)
I have a query in shell scripts that gives me a results like:

Code:article;20200120
fruit;22
fish;23I execute that report every day. I would like that when I execute the query the next day shows me output like that:

Code:article;20200120;20200121
fruit;22;11
fish;23;12These report I execute with postgre sql in a linux shell script. The output of csv is generated redirecting the ouput with ">>" Please any help to achive that.

Thankslatest?d=yIl2AUoC8zA latest?i=9ABTSL_YkqA:lymuiYMfpJw:F7zBnMy latest?i=9ABTSL_YkqA:lymuiYMfpJw:V_sGLiP latest?d=qj6IDK7rITs latest?i=9ABTSL_YkqA:lymuiYMfpJw:gIN9vFw9ABTSL_YkqA
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments