I must use C-shell. I have a 40+ list of ip and hostname in text file.
sat1 100.34.54.65
sat2 100.34.54.55
sat3 100.34.54.45
and so on..
i want to set the ip and hostname as list of array. The first array is hostname ; sat1 sat2 sat3 and second array the ip address.For example:
array1 = (sat1 sat2 sat3) array2 = (100.34.54.65 100.34.54.55 100.34.54.45)
how to make the ip and hostname from the .txt file to list of array?
awk
. – Wildcard Nov 12 '15 at 5:15