Monday, December 12, 2011

slice and dice a csv file into submission

 1943  echo First Name,Last Name,Email Address > toImport.csv
 1944  vi toImport.csv
 1945  cat 2011-1205-server3-thunderbird-contacts.csv | cut -d.,. -f1,2,5 >>toImport.csv
 1946  cat 2011-1205-server3-thunderbird-contacts.csv | cut -d"," -f1,2,5 >>toImport.csv


examples above for now

No comments:

Post a Comment