第17行:警告:命令替换:在输入[BASH]中忽略了空字节

时间:2020-08-14 11:06:09

标签: bash

我是Bash脚本的初学者,我想输入错误代码。

cari.sh: line 17: warning: command substitution: ignored null byte in input

第17行是

GET=$(curl --silent --max-time 10 --connect-timeout 10 -L "${Website}")

当我使用循环和这样的多线程时出现错误:

IFS=$'\r\n'
n=1
t=3
for Website in $(cat $WEB); do
        f=$(expr $n % $t)
        if [[ $f == 0 && $n > 0 ]]; then
                sleep 1
        fi
        RUN $TARGET $n &
        n=$[$n+1]
done
wait

然后使用2> / dev / null即时通讯,然后尝试运行脚本,即时通讯出现错误。

0 个答案:

没有答案