I do this:
f = open(sys.argv[1] ) ff = open(sys.argv[2] ) for line in f: for line2 in ff: print line,line2 but it only prints the first line from the file f, although if you deduce it separately, it prints all the lines.
For example, in the file f there are lines:
12 123 and in the ff file line 1234, you need to output as follows:
12 1234 123 1234 in my case it outputs:
12 1234 does not take into account the second and subsequent lines.