我是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即时通讯,然后尝试运行脚本,即时通讯出现错误。