1 Star 3 Fork 2

奶瓶OO/shell脚本

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
统计内存.sh 106 Bytes
Copy Edit Raw Blame History
奶瓶OO authored 2020-02-09 19:10 . 我的shell代码
#!/bin/bash
mem=`ps aux|sed '1'd|awk '{print $6}'`
num=0
for n in $mem;do
num=$((num+n))
done
echo $num
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/NaiPingOO/shell_script.git
git@gitee.com:NaiPingOO/shell_script.git
NaiPingOO
shell_script
shell脚本
master

Search