我想从目录中压缩文件,但只能压缩到给定的深度。在下面的示例中,我想包含深度为 3 的文件:
dir0/
dir1/
dir2 -> subdir1, subdir2
dir3 ->
file1
Run Code Online (Sandbox Code Playgroud)
如果我可以发出:
zip --depth 3 -r output dir0
Run Code Online (Sandbox Code Playgroud)
我会有以下输出:
dir0/dir1/file1
Run Code Online (Sandbox Code Playgroud)
我怎样才能做到这一点?我应该使用 tar,还是在 Linux 中还有其他常用工具?
我如何告诉 aspell 忽略给定的单词集。
我确实需要将该列表作为输入参数传递,所以我不需要以交互方式忽略所有内容。
因为我有 100 多个文件的循环,我在其中调用 aspell 来检查每个文件的语法。