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.
我想解压缩文件夹中的所有 .gz 文件并将它们组合成一个新文件。我可以在不为每个 .gz 文件生成未压缩文件的情况下执行此操作吗?
非常感谢!
你可以这样做 :
zcat *.gz > newfile
如果你想删除 *.gz 之后:
zcat *.gz > newfile && rm -f *.gz