我对bash相当陌生,并且遇到了这段代码。
j=0 while ! nc -z "$host" "$port"; do j=$((j+1)) if [ $j -ge 10 ]; then echo >&2 "$host:$port not reachable, giving up" exit 1 fi done
我不明白!之前如何在nc这里工作。谁能帮忙解释一下?
!
nc
谢谢
bash netcat
bash ×1
netcat ×1