利用文本文件构建实用工具
1. 构建快速文件搜索工具
通过 ff 命令可以进行文件搜索,例如:
$ ff animal
/home/smith/Work/Writing/Books/Lists/animals.txt
使用 -i 选项可以进行大小写不敏感的搜索:
$ ff -i animal | less
/home/smith/Work/Writing/Books/Lists/animals.txt
/home/smith/Vacations/Zoos/Animals/pandas.txt
/home/smith/Vacations/Zoos/Animals/tigers.txt
还可以统计匹配的文件数量:
$ ff -i animal | wc -l
16
为了更新索引,可以定期重新运行 find 命令,或者使用 cron 创建定时任务。
2. 检查域名到期时间
步骤如下:
1. 确定问题 :跟踪域名的到期时间以便及时续费。
2. 创建域名文件 :创建一个文本文件,如 domains.txt
超级会员免费看
订阅专栏 解锁全文

被折叠的 条评论
为什么被折叠?



