我有这个Bash脚本:
#!/bin/bash
while read -r line; do
ip="$line"
torify ./PRET/pret.py $ip pjl -q -i ./commands.txt
done < "./potential_bros.txt"
为什么会出现此错误?
commands.txt =
print ./message.pdf
display Completed
quit
potential_bros.txt =我的IP
答案 0 :(得分:0)
我无法重现此错误。有效的示例:
$ cat t.sh
while read -r line ; do
echo $line
done < t.txt
$ cat t.txt
item1
item2
item3
$ ./t.sh
item1
item2
item3