![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help needed in padding leading zeros | jakSun8 | Shell Programming and Scripting | 12 | 07-02-2008 07:41 PM |
| Byte Padding | naan | High Level Programming | 6 | 02-22-2007 05:09 AM |
| Padding zeros after removing commas in file | pranag21 | HP-UX | 1 | 11-09-2005 10:22 PM |
| Padding | vijaygopalsk | UNIX for Dummies Questions & Answers | 2 | 06-27-2003 10:51 AM |
| Padding issues | informshilpa | UNIX for Advanced & Expert Users | 2 | 03-01-2002 01:51 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
if you have Python
Code:
#!/usr/bin/env python
import csv
filename = "file"
reader = csv.reader(open(filename))
writer = csv.writer( open("newfile.csv","wb"), quoting=csv.QUOTE_ALL)
for row in reader:
writer.writerow(row)
Code:
# ./test.py # more newfile.csv "100","0000100","ABC" "100","0000200","ABC" "100","0000300","ABC" Last edited by ghostdog74; 05-18-2009 at 08:50 PM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|