![](/img/trans.png)
[英]How to copy files with a particular extension from one directory to another in linux
[英]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.