Categories
System/Linux/Unix*

[memo] 用 shell awk 加總 column

ls -l `find /mnt/tslog/archive/ -name "*20190[1..6]*" -type f` | awk '{sum += $5} END {print sum}'
160038650315

ls -l `find /mnt/tslog_bak -name "*20190[1..6]*" -type f` | awk '{sum += $5} END {print sum}'
160038650315

ls -l `find /mnt/tslog_backup2 -name "*20190[1..6]*" -type f` | awk '{sum += $5} END {print sum}'
160038650315

Categories
System/Linux/Unix*

[memo] 常用 ubuntu 升級套件指令 / ubuntu upgrade commands

# 更新
apt update

# 列出可 upgrade 的 package
apt list –upgradable

# 只 upgrade 這些 packages
apt –only-upgrade install XXXXX

Categories
JOB

Protected: CBOA info

This content is password protected. To view it please enter your password below: