I have a file "hosts" generated from other scripts in this format (line-by-line no spaces):
IPv4_1
hostname_1
IPv4_2
hostname_2
...
ie:
10.10.71.11
vm_1
10.66.12.12
vm_2
...
I would like to process this file line by line (with a space or tab between them) in this format:
IPv4_1 TAB/SPACE hostname_1
IPv4_2 TAB/SPACE hostname_2
...
ie:
10.10.71.11 vm_1
10.66.12.12 vm_2
...
Any help will be appreciated.