76

Shell练习(十一)-kindy个人博客

 6 years ago
source link: http://blog.51cto.com/11924224/2083611
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
习题1:统计数字并求和要求:计算文档1.txt中每一行中出现的数字个数并且要计算一下整个文档中一共出现了几个数字。参考答案:习题2:统计网卡流量要求:写一个脚本,检测你的网络流量,并记录到一个日志里。需要按照如下格式,并且一分钟统计一次(只需要统计外网网卡,假设网卡名字为eth0):2017-08-0401:11eth0input:1000bpseth0output:200000bps######

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK