簡體   English   中英

如何在linux的目錄中一個一個zip文件

[英]How to zip files one by one in a directory in linux

我有一個目錄,其中有文件-: abc_002.txt abc_003.txt abc_004.txt abc_005.txt xyz_001.txt for_ex.sh abc_001.txt

我只想壓縮以 abc 開頭的文件,比如 abc*。

對於 abc*.txt 中的文件,執行 gzip $file 完成

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM