Get the App
SLTechnology News&Howtos  ›  Servers  › 

Little knowledge of shell

Shulou Source: shulou.com Published: 2022-06-03 07:15:44 09月21日 Update

[root@DBBK1 changeIP] # cat view.sh #! / bin/shif [$#-ne 1]; then echo "USAGE:/bin/sh $0 ARG1" exit 1fifor n in `cat ip.txt`do echo = 172.22.10.roomn = ssh root@172.22.10.$n "$1" [root @ DBBK1 changeIP] # cat ip.txt 100101102103106 [root@DBBK1 changeIP] #

Tags: Knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Huawei Redmi Docker Xiaomi