Combine 2 lists via applescript or shell.
Hi I’m looking for someone with help with a script that I want to compile.
I have 2 CSV I need to join together, to help form a list, its something that I can do (non macro) in excel but is long winded way to merge them together.
Both files contain a list, one item per line.
Each line needs to be joined to the line of the other plus some extra input. “ _”
If the list in each do not have them same number of lines then it will not work and so needs to end.
For example
FileA.txt
Cousins
Atkins
Tremain
Chalk
FileB.txt
Steven
Frank
Barry
Phil
In Excel I was using something similar to this
=A1&" _"&[Workbook2]Sheet1!$A$1
OUTPUT FILE LIST.CSV should then look something like this.
Cousins, Cousins _Steven,
Atkins, Atkins _Frank,
Tremain, Tremain _Barry,
Chalk, Chalk _Phil,
Hope that makes sense.
Mac Pro, OS X Yosemite (10.10.2)