Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有许多字体的存档,但我无法将它们全部提取到一个文件夹中。我现在尝试写一个长脚本 3 个小时,它以某种方式在路径问题上中断。我试过像 find 这样的管道,. -name *.zip|unzip -d ~/fonts但它不起作用。我在编写的脚本中更改了很多,以至于它并不像样:(。
. -name *.zip|unzip -d ~/fonts
据说每个字体文件(我没有检查所有,确实有很多)在一个 rar 存档中,该存档与自述文件一起位于一个 zip 存档中,与另一个自述文件一起位于各自的文件夹中。这可以在一行中完成吗?
尝试更改这样的一行 find 。-名称“*.zip”| xargs 解压 -d ~/fonts
尝试这个
find . -name "*.zip" -exec unzip -d ~/fonts {} \;