Formatting data in a raw file by using another mapping file

view story

http://www.unix.com – Hi All, i have a requirement where i need to format the input RAW file ( which is CSV) by using another mapping file(also CSV file). basically i am getting feed file with dynamic headers by using mapping file (in that target field is mapped with source filed) i have to convert the raw file into a standard format (target format). currently i am using ETL tool to achieve this but it's taking long time. i am trying to write generic shell script for this. could anyone help me in a high level view. i am new to scripting. the target file also be a CSV file. thanks in advance Ravi (HowTos)