I have a csv file which has no header. the file has 15 fields and needs to go out with a header of 8 fields.
The header content needs to have some variables and some fixed that i have set up:
variable header fields
OUTFILE_YEAR=`date '+%y'`
DATE=`date '+%d%m%y'`
TIME=`date '+%H:%M:%S'`
NNNN="hello"
RR=`wc -l ../xxxx/"xxxxx.txt"`
fixed header fields
1
1
4
How can i get the above in a header and onto the already existing csv file?