我试图在脚本末尾得到总和 ,36962
以呼应$TOTAL
,但我无法让它工作。有什么建议吗?这是一个学校项目,我对 Bash 很生疏。
TOTAL=0
while read p; do
awk '{ if ($1 > 100 ) print TOTAL+=$1}'
echo $TOTAL
done < ipuniq.txt
- 6578
- 6723
- 32735
- 36962
- 回声 -> 0
我试图在脚本末尾得到总和 ,36962
以呼应$TOTAL
,但我无法让它工作。有什么建议吗?这是一个学校项目,我对 Bash 很生疏。
TOTAL=0
while read p; do
awk '{ if ($1 > 100 ) print TOTAL+=$1}'
echo $TOTAL
done < ipuniq.txt
我正在尝试使用我的 Windows 10 机器上的 ssh 连接到我的 GoDaddy Cpanel 服务器。我的 FileZilla、mobaxterm 和 putty 的常规选项都坏了。我发现的唯一调试方法是下面列出的。
C:\Users\Joshua>ssh -v 107.180.12.188
OpenSSH_for_Windows_7.6p1, LibreSSL 2.6.4
debug1: Connecting to 107.180.12.188 [107.180.12.188] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Joshua/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Joshua/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Joshua/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Joshua/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Joshua/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Joshua/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Joshua/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Joshua/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_7.6
ssh_exchange_identification: read: Connection reset