I need to append a column of data onto the end of another file:
File 2:
192121412
192121413
192121417
192121444
192121445
192121502
192121516
...
File 1:
1,192121412,651215.162,5171375.56
2,192121413,651215.291,5171375.619
3,192121417,651215.804,5171375.855
4,192121444,651219.268,5171377.446
5,192121445,651219.396,5171377.505
...
to become:
1,192121412,651215.162,5171375.56,192121412
2,192121413,651215.291,5171375.619,192121413
3,192121417,651215.804,5171375.855,192121417
4,192121444,651219.268,5171377.446,192121444
5,192121445,651219.396,5171377.505,192121445
I need to do this without resorting to the shell 'join' command - to keep a long story short, I need an awk-only solution.
~ Eric.
File 2:
192121412
192121413
192121417
192121444
192121445
192121502
192121516
...
File 1:
1,192121412,651215.162,5171375.56
2,192121413,651215.291,5171375.619
3,192121417,651215.804,5171375.855
4,192121444,651219.268,5171377.446
5,192121445,651219.396,5171377.505
...
to become:
1,192121412,651215.162,5171375.56,192121412
2,192121413,651215.291,5171375.619,192121413
3,192121417,651215.804,5171375.855,192121417
4,192121444,651219.268,5171377.446,192121444
5,192121445,651219.396,5171377.505,192121445
I need to do this without resorting to the shell 'join' command - to keep a long story short, I need an awk-only solution.
~ Eric.