Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear All,
I have an csv file called ABC.txt in which I want to add an header from one csv file called Header.csv.
I am using tsystem component with following code in "use Single Command" .
"/bin/bash tempath='/home/UserTalend/Desktop/CI/ABC.txt' Filepath='/home/UserTalend/Desktop/CI/Header.csv ' for line in $temppath; do cat $Filepath $line>tmp && mv tmp $line done"
I am getting an error:
No such file or directory
tSystem_1_EXIT_VALUE :127.
If I run the same unix code through CMD then I get an custom header in my ABC.txt file. I am not sure where I made mistake.
Do we have any other idea to add custom headers for 1000 files in simple one go.
Please provide your valuable suggestion.