Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to append two CSV files using ftp

Hi

Please let me know the FTP command to append the two .CSV files into one .CSV file.

e.g.

Let me explain:

one CSV file has the fields F1 , F2, F3 , F4 and has 5 records

another CSV file has the same sequence of fields F1, F2, F3, F4 and has 10 records

after appending both the files , I must get 15 records.

Thanks

Alok

Former Member
replied

try this:

cat file1 >concat.txt

tail +1 file2 >>concat.txt

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question