1

Put the lines from file A to end of lines in file B

view story
linux-howto

http://www.unix.com – 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: Code: example.com another.org thirdie.net fileB: Code: 1.1.1.1 2.2.2.2 3.3.3.3 I want to create a fileC that looks like: Code: 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 (HowTos)