Sample Header Ad - 728x90

Combine .csv-files with text between each line

1 vote
1 answer
78 views
I have two (or maybe more) files: **file1.csv**
dog
cats
mouse
**file2.csv**
001a
002a
003c
If I use paste file1.csv file2.csv the output is
dog	001a
cats	002a
mouse	003c
Of course I can use paste -d , file1.csv file2.csv
dog,001a
cats,002a
mouse,003c
But I want this **output**
TEXT1-dog-TEXT2-001a-TEXT3
TEXT1-cats-TEXT2-002a-TEXT3
TEXT1-mouse-TEXT2-003c-TEXT3
Is there a way to put multiple .csv files together with extra text before, between and after each line?
Asked by R 9000 (167 rep)
Feb 11, 2023, 12:40 AM
Last activity: Feb 11, 2023, 01:54 AM