Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
join 2 files of different length
Name: Iam Date: June 30, 2004 at 01:56:36 Pacific OS: win98se CPU/Ram: p3
Comment:
I am trying to join two files of different length n different content but content format is same.
this is what i did join -a1 -a2 file1 file2
but however some lines are missing when output. file1 has 5 lines in it and file 2 has 4 lines in it. format is a string of number, a space, and then some integers.
Why is this so? i read the man page but still dont get it.
Summary: Hi folks, I have 2 files in unix header.txt and data.txt. I have the header file which has all the column names and the data.txt file has the data being extracted daily. The data.txt file does n...
Summary: I would think sort and diff should do it: sort file1 > file1s sort file2 file3 > file23s diff file1s file23s | grep '^\<' | cut -c3- Or, for this awk solution, file2 and file3 should be the sma...
Summary: Hello!!! I've just in a old post how to join 2 lines into 1. I need to do similar but I don't know the amount of lines that I must join beforehand. For example: TEXT1 123 41 51 TEXT2 12 TEXT3 12 13 14...