6 lines
130 B
Bash
6 lines
130 B
Bash
#!/bin/bash
|
|
while read $line
|
|
do
|
|
ip=$(echo $line | cut -d ' ' -f 1)
|
|
hostname=$(echo $line | cut -d ' ' -f 2)
|
|
done < ./hosts |