mapping - automaticly map one csv file with 18 fields with a bigger csv file -


from website receive contact data , booking information customers in csv file. file has 18 fields. keep overview of customers , bookings use 3rd party software can import data csv in specific field order , more fields.

i need tool / automated process change emaild csv in following way:
import file : export file
field1 : field3
field2 : field6
field3 : field4
field4 : field18
field5 : field9
(these example values)

this easy in awk if understand want. might following:

awk '{print $3,$6,$4,$18,$9}' yourfile 

which print third, sixth, fourth etc. fields of yourfile. if fields separated commas, rather whitespace, add -f specify field separator this

awk -f, '{ ... above ...}' yourfile 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

jquery - Keeping Kendo Datepicker in min/max range -