Freelance Projects

All freelance projects at One Location


Remove Carriage Returns In Csv  29.09.08

I need a script to do the following: perl or php ONLY
Take my .csv which has 1,000’s of records, 10 columns. There is a long decription column and a short description column that will may line breaks and commas.

E.g.:

—————-START CSV—————
“ABC1234″,”ASST: STUFF”,”",”",”DV”,”DV”,4.00,0,0,
“ABC1235″,”FROSTED ACRYLIC DISP.”,”",”",”LU”,”ID”,0.00,0,0,
“ABC1236″,”ZEUS ELECTRO”,”",”Bands are a very versatile flexible

They come readily compatible with any snap leads included “,”NV”,”XR”,30.00,10,1,45453455367
“ABC1237″,”PIPE CLEANER”,”",”The PIPE CLEANERS COME IN 4 COLORS

WHITE
BLACK
GREEN
YELLOW

“,”NV”,”XR”,60.00,0,1,34789345345
“ABC1238″,”SMALL SHELF”,”",”These shelfs attach to the wall easily

includes screws

“,”NV”,”XR”,11.00,11,1,347894358953
“ABC1239″,”ZEUS PEICE”,”",”simplistic design

Comes in 2 sizes.
• Small: 3 inches long, 5 inches tall
• Large: 6 inches long, 1.5 inches tall

“,”NV”,”XR”,25.00,11,1,789789789
—————-END CSV—————

Requirements:
1. The csv will need to be psv–pipe seperated values
2. All extra line breaks need to be removed so that an entry is only 1 line, line breaks need to be replaced with <br /> tags.



If you liked this project, make sure you
Subscribe to Freelance Projects RSS feed!




    • Your Ads Here
    • Your Ads Here