I have the following piece of code:
v=`date "+%Y%m%d"`
awk -F, '{$2=$v;}1' OFS=, test.txt > test2.txt
where test.txt is my input file and test2.txt the output file.
The lines in test1.txt respect the following format: Unix,10,A
When I execute the above script, it doubles the first and last word from test.txt
 
     
     
     
    