The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Adding columns to a file
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Forum Rules
FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
Adding columns to a file
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
05-16-2008
rubin
Registered User
Join Date: Nov 2007
Posts: 176
Code:
awk -v d="$(date "+%Y-%m-%d")" '{print "abc", d, $1}' foo.csv > foo.txt
rubin
View Public Profile
Find all posts by rubin