I have a file with only one column of data (without delimiter). For Ex:
cat temp.txt
22055
21088
93840
30990
50990
50950
I want to insert an additional column with current date as value. So, i have used below command but didn't get the result as excepted. Could onyone over here please help me in writing the current script command. Also i need to get rid of "space" after the comma delimiter.
The result you present is not quite reproducible. -OFS="," causes an error, but when corrected like -vOFS="," , it should yield the desired output without space. You could even simplify your code snippet like