for loop inside for loop ...double for loop
for A in `cat KVMserverlist.txt`;do for B in `echo $A; ssh -l root $A virsh list --all | cut -d "_" -f3` ;do echo $B;done ;done | grep ^9
for A in `cat KVMserverlist.txt`; do echo $A;ssh -l root $A virsh list --all;done
for A in `cat KVMserverlist.txt`; do echo $A;ssh -l root $A virsh list --all;done
Comments
Post a Comment