The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
creating a CSV file for past 7 days
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
creating a CSV file for past 7 days
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
08-23-2008
era
Herder of Useless Cats (On Sabbatical)
Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
If by "record count" you mean "line count", read the
wc
command's manual page.
Code:
wc /data/XYZ/Daily_File*.txt | nawk -v OFS=, '{ print $4, $1, $3 }'
I guess the "below nomenclature" was supposed to explain something more about what would come after Daily_File but you didn't explain that. The above will run over all the files.
era
View Public Profile
Visit era's homepage!
Find all posts by era
Find era's past nominations received
Find era's present nominations given