bigfiles
来自「UNIX[1].shell范例精解(第4版)_code」· 代码 · 共 24 行
TXT
24 行
# Name: bigfiles# Purpose: Use the find command to find any files in the root # partition that have not been modified within the past n (any # number within 30 days) days and are larger than 20 blocks # (512-byte blocks)if [ $# -ne 2 ]then echo "Usage: $0 mdays size " 1>&2 exit 1fiif [ $1 -lt 0 -o $1 -gt 30 ]then echo "mdays is out of range" exit 2fiif [ $2 -le 20 ]then echo "size is out of range" exit 3fifind / -xdev -mtime $1 -size +$2 -print
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?