I really can't figure this one out.
I have 2 files, one file is a list of hostnames and the other is a list of their corresponding IPs:
fileA:
example.com
another.org
thirdie.net
fileB:
1.1.1.1
2.2.2.2
3.3.3.3
I want to create a fileC that looks like:
example.com 1.1.1.1
another.org 2.2.2.2
thirdie.net 3.3.3.3
How would I achieve this? I have a huge sed command happening but I am not at work at the moment so I can't show you what I have so far. Any help would be great, thanks. fileA and fileB are generated from other scripts and will always have a matching amount of lines and corresponding to each other 1:1, so I just need to worry about putting A to the end of B