+while read line +do
- i=$(echo $line | awk '{print $2}')
- j=$(echo $line | awk '{print $1}')
what means i j
- ip=$(grep $i /home/dewan/servers.info | head -n 1 |awk '{print $1}')
^^^^ your own file ?
Thanks, Shenwei
- echo "ipmi_ip: $ip" >> $j
+done < m
2.23.0