⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bigfiles

📁 UNIX[1].shell范例精解(第4版)_code
💻
字号:
# 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 (( $# != 2 ))          # [ $# -ne 2 ]then 	echo  "Usage:   $0 mdays size " 1>&2	exit 1fiif (( $1 <  0 || $1 > 30 ))     # [ $1 -lt 0 -o $1 -gt 30 ] then	echo "mdays is out of range"	exit 2fiif (( $2 <= 20 ))      # [ $2 -le 20 ]then	echo "size is out of range"	exit 3fifind / -xdev -mtime $1 -size +$2

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -