摘要: 转自:http://www.cnblogs.com/recognition/p/5459681.html 我想实现 举例:1/3=0.33得到0.33, 尝试过bc 只能得到.33,没有0了, linux 下的shell脚本,1和3是变量$a和$b,并能指定小数点后的位数, 方法1: 1 2 3 $ 阅读全文
posted @ 2017-09-25 15:58 sjxm2017 阅读(668) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/kimbo/p/7263344.html?utm_source=itdadao&utm_medium=referral 用法:sort [选项]... [文件]...串联排序所有指定文件并将结果写到标准输出。 排序选项: -b, --ignore- 阅读全文
posted @ 2017-09-25 15:55 sjxm2017 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.chinaunix.net/uid-15007890-id-3413584.html 1.CPU占用最多的前10个进程: ps auxw|head -1;ps auxw|sort -rn -k3|head -10 2.内存消耗最多的前10个进程 ps auxw|head 阅读全文
posted @ 2017-09-25 15:41 sjxm2017 阅读(162) 评论(0) 推荐(0) 编辑