Thank you for your response, it worked very well. A question:
The delimiter you are suggesting is a space. How can this be changed to a comma ','?
And for the record, the full statement needs to be:
Code:
cut -d, -f 1 foo.csv | awk -v d="$(date "+%Y-%m-%d")" '{print "abc", d, $1}' >foo.txt
If there are more efficiencies in this statement to be made, please let me know.
Thank you in advance