I want to put the output data from unix command to a csv file. Suppose the output which I am getting is :
A B C
I want to put this data in .csv
unix_command | tr "\n" " " > file.csv
or
unix_command | awk 'ORS=FS' > file.csv