ssh ls *|wc -l 返回统计值
来源:互联网 发布:深圳市软件培训机构 编辑:程序博客网 时间:2024/05/22 14:07
ssh ls *|wc -l 返回统计值
#!/bin/sh
for i in {2..25}
do
ip=10.161.21.$i
echo $ip
t=`ssh unicomlabs@$ip "ls /home/unicomlabs/qq*|wc -l"`;
echo "t=$t"
#echo $ip >> ip10.161.21.txt; echo "####################################################" >> ip10.161.21.txt;echo "####################################################" >> ip10.161.21.txt
#t2=`ssh unicomlabs@$ip cat /home/unicomlabs/ip2.txt|wc -l`;
#t3=`ssh unicomlabs@$ip cat /home/unicomlabs/ip3.txt|wc -l`;
#t4=`ssh unicomlabs@$ip cat /home/unicomlabs/ip4.txt|wc -l`;
#t5=`ssh unicomlabs@$ip cat /home/unicomlabs/ip5.txt|wc -l`;
#t=$(($t1+$t2+$t3+$t4+$t5))
#echo "$ip=$t";
done
- ssh ls *|wc -l 返回统计值
- ls -l |wc -l命令多统计一行
- linux之ls -l|grep "^-"|wc -l命令 & Shell 中常见的日志统计方法
- linux命令(linux之ls -l|grep "^-"|wc -l命令)
- linux之ls -l|grep "^-"|wc -l命令
- Shell(1)——对变量赋值、echo、$、wc -l、wc -w、wc -c、ls、cp
- # ls ./htmlfile | wc -l linux查看文件夹个数
- ls -l
- ls -l
- ls-l
- set $(wc -l $title_file)
- linux的wc -l 命令统计文件少一行(一般是windows文件)
- 管道 |wc -l (wc也是一个命令)
- linux:ls、ls -l、ls -al区别
- linux:ls、ls -l、ls -al区别
- 如何验证linux进程打开文件数的默认最大值(通常是1024)? 知识点: ulimit; watch -n 1 'ls -l /proc/xxx/fd | wc -l'
- ls -l 命令详解
- ls -l命令详解
- Raptor6
- 第五周项目—求和
- nc uap中树卡节点编码树与pk树有什么区别
- 第五周项目五计算函数值2
- Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK fla
- ssh ls *|wc -l 返回统计值
- 《Leetcode系列》C++实现:3-Longest Substring Without Repeating Characters
- Object "netns" is unknown, try "ip help".
- 空数组的赋值相关知识
- JS刷新父窗口的几种方式
- 简述Android四大组件之一的Service(一)
- 剑指offer:二维数组中的查找(java)
- 生物导航-蚂蚁双重导航系统
- bootstrap表格