start=`sed -n '/'"$1"'/=' /tmp/wifi_scan.log`
echo "$start"
eval sed -n '$start,\$p' /tmp/wifi_scan.log | grep Quality | head -n 1
shell 获取行号匹配到第一个字符后返回
最新推荐文章于 2022-10-09 11:51:34 发布
start=`sed -n '/'"$1"'/=' /tmp/wifi_scan.log`
echo "$start"
eval sed -n '$start,\$p' /tmp/wifi_scan.log | grep Quality | head -n 1