文件操作 - histsort.awk
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/doc/gawk/examples/prog/histsort.awk
编辑文件内容
# histsort.awk --- compact a shell history file # Thanks to Byron Rakitzis for the general idea # # Arnold Robbins, arnold@skeeve.com, Public Domain # May 1993 { if (data[$0]++ == 0) lines[++count] = $0 } END { for (i = 1; i <= count; i++) print lines[i] }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件