Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSV files

Status
Not open for further replies.

cback

Programmer
May 30, 2002
3
GB
Hi

Another query ... I have a csv file with names and addresses, eg:
FRED,SMITH,128 NEW DRIVE,LONDON
but sometimes I get a record:
FRED,SMITH,"128 NEW DRIVE,HOLBORN", LONDON
where 128 NEW DRIVE,HOLBORN is the third field

Is there any easy way to code this in awk, perhaps with pattern matching for "*,*" or something?

Thanks

Chris

 
Brilliant - thanks, although it'll take a while to digest!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top