The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 05-17-2008
figaro figaro is offline
Registered User
 

Join Date: Jan 2007
Posts: 27
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
Reply With Quote