I had no idea how to word the title.
I need to take an output such as:
[~]# cat file
user1
domain1.com
user2
domain2.com
user3
domain3.com
and turn it into an output such as:
user1 domain1.com
user2 domain2.com
user3 domain3.com
Any assistance here would be greatly appreciated.
usage:
I figured this out with some array-age
Man, there's gotta be an easy way to do this. I clearly haven't got enough sleep, because I can't think of any. But, because I don't like arrays, I used a for loop. It essentially goes through each LINE, and outputs the even numbers to a new file without a linebreak, and appends the odd ones with a break. Seems to work!
--Christopher Karel