小编Man*_*uel的帖子

重用 rsync --dry-run 输出以加快实际传输速度

我通常rsync -n在做一个实际的rsync. 问题是,我如何自动执行第二次运行以准确重用用 生成的列表--dry-run

我的意思是,如果我运行rsync -n然后我会模拟rsync会做什么,我的想法是获取该输出,处理它然后以某种方式rsync仅生成--include-from该输出,因此完整列表只需要计算一次。

如果这甚至没有意义,请告诉我。

顺便说一句,我倾向于使用rsync -hva --progress --stats --delete --exclude-from "$EXCLUDEFILE". 如果您对使用哪些选项也有建议,请告诉我。我正在尝试将外部硬盘驱动器(仅包含图像、视频和文档)的内容复制到另一个外部硬盘驱动器。

terminal rsync text-processing

36
推荐指数
1
解决办法
10万
查看次数

grep 不显示结果

我试图在 中搜索man find,我想知道发生了什么。

$ man find | grep Like
             Like -lname, but the match is case insensitive.  This is a GNU
             Like -name, but the match is case insensitive.
             Like -path, but the match is case insensitive.
             Like -regex, but the match is case insensitive.
             Like -name, but the contents of the symbolic link are matched
$ man find | grep "\-name"
     find / \! -name "*.c" -print
     find /usr/src -name CVS -prune -o -depth +6 -print
     find …
Run Code Online (Sandbox Code Playgroud)

shell grep man

0
推荐指数
1
解决办法
301
查看次数

标签 统计

grep ×1

man ×1

rsync ×1

shell ×1

terminal ×1

text-processing ×1