
27 Oct
2020
27 Oct
'20
4:43 p.m.
On Tue, Oct 27, 2020 at 02:06:57PM +0800, Zhang Dewan wrote:
--- /dev/null +++ b/hosts/p @@ -0,0 +1,10 @@ +#!/bin/bash + +while read line +do + + i=$(echo $line | awk '{print $2}') + j=$(echo $line | awk '{print $1}') + ip=$(grep $i /home/dewan/servers.info | head -n 1 |awk '{print $1}') + echo "ipmi_ip: $ip" >> $j +done < m
This is a temporary script? what does it do? Thanks, Zhangyu