摘要:
##将IP分割并存入arr数组shell>IP="192.168.2.1" shell>arr=($(echo $IP | awk -F. '{print $1,$2,$3,$4,$1"."$2"."$3}')) ##显示数组长度 shell>echo ${#arr[@]} ##显示数组的全部内容 shell>echo ${arr[@]} ##显示数组某下标内容 shell>echo ${arr... 阅读全文
posted @ 2017-04-18 13:26
西风古道
阅读(107)
评论(0)
推荐(0)
浙公网安备 33010602011771号