The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Creating a csv file based on Existing file
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
Creating a csv file based on Existing file
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
12-02-2007
Franklin52
Moderator
Join Date: Feb 2007
Posts: 2,480
Or with awk:
Code:
awk -F, '{printf("%s,%s,%s,%0.8d,%s,%s\n", $1,$3,$4,$5,$6,$7)}' infile > outfile
Regards
Franklin52
View Public Profile
Find all posts by Franklin52