Name: badger Date: April 6, 2008 at 13:58:57 Pacific Subject: script to combine data from 2 files OS: Mac OSX CPU/Ram: N/A Model/Manufacturer: N/A
Comment:
Hi, I'm trying to combine columns of data from two text files. I'd like to take every line of column 2 from text file A and every line of column 3 from text file B. Then write every combination of lines in the two columns to a new text file. So for instance if there were 4 lines in each column from the old files, then the new file would contain 4x4 = 16 lines, each with 2 columns. Any advice or help on this would be greatly appreciated.
Who's going to get the credit for your homework assignment if we do it for you? If you want to get an "A" in the class, then you should ask your instructor to provide you with the answers, that way you know you'll be submitting the answer that he/she wants.
Forgot the explanation. Basically you are saying for every second word one every line in fila (line2) and every third word on every line in fileb (line3) print the results you find (line4).
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE