Append a New Column in a CSV File in Linux

5 Ansichten (letzte 30 Tage)
Deevya Naresh
Deevya Naresh am 9 Jul. 2019
Hi,
I would like to append a new column in a csv file in linux via the parameters being passed
For Eg Input File
UID,Column_Nodes.csv
CLASS,Column_Nodes.csv
SUBCLASS,Column_Nodes.csv
BUS_NAME,Column_Nodes.csv
My Output file Should be like when i run the script ./Datafile.sh i need to pass the parameter with the application name like ./Datafile.sh CRE_FF and my output file should like this
CRE_FF_Column_Nodes_UID,UID,Column_Nodes.csv
CRE_FF_Column_Nodes_UID,CLASS,Column_Nodes.csv
CRE_FF_Column_Nodes_UID,SUBCLASS,Column_Nodes.csv
CRE_FF_Column_Nodes_UID,BUS_NAME,Column_Nodes.csv
The Parameter passed needs to get appened with the 3rd column and 2nd column.

Antworten (0)

Kategorien

Mehr zu Standard File Formats finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by