小编Gad*_*lin的帖子

拉链/焦油/?带有深度参数的文件

我想从目录中压缩文件,但只能压缩到给定的深度。在下面的示例中,我想包含深度为 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 中还有其他常用工具?

linux compression zip tar

6
推荐指数
1
解决办法
2433
查看次数

忽略所有单词集 (ASPELL)

我如何告诉 aspell 忽略给定的单词集。

我确实需要将该列表作为输入参数传递,所以我不需要以交互方式忽略所有内容。

因为我有 100 多个文件的循环,我在其中调用 aspell 来检查每个文件的语法。

bash aspell

2
推荐指数
1
解决办法
1143
查看次数

标签 统计

aspell ×1

bash ×1

compression ×1

linux ×1

tar ×1

zip ×1