我想挖掘大量IP,并将命令放在一行中(以paloalto防火墙命令的格式)写出来,但是我的脚本给出如下响应
servername.
ip-netmask 10.224.161.242
我的要求是:set address <servername> ip-netmask <ip>
#!/bin/bash
filename='ip_in.txt' # name of file with IPs to handle
nameserver='10.225.9.18' # nameserver to query
for ip in `cat $filename`
do
dig @$nameserver -x $ip +short
echo "ip-netmask $ip"
done
我该如何实现?
答案 0 :(得分:2)
value="Refresh Page" onClick="window.location.reload()"