保留特定副檔名且刪除其他檔案 - Linux

By Skylar DavisLinda
at 2012-11-09T17:00
at 2012-11-09T17:00
Table of Contents
各位好!!小弟是linux的新手
想請問如果一個資料夾中有數個檔案
ex:
richer01, richer02,..., richer99
abcdef
1234abcd
sh01.sh
sh02.sh
sh03.sh
若只想保留副檔名為.sh的檔案 其他檔案全刪除的話
該如下什麼指令比較合適??
--
想請問如果一個資料夾中有數個檔案
ex:
richer01, richer02,..., richer99
abcdef
1234abcd
sh01.sh
sh02.sh
sh03.sh
若只想保留副檔名為.sh的檔案 其他檔案全刪除的話
該如下什麼指令比較合適??
--
Tags:
Linux
All Comments

By Genevieve
at 2012-11-10T08:24
at 2012-11-10T08:24

By Necoo
at 2012-11-10T17:46
at 2012-11-10T17:46

By Annie
at 2012-11-13T18:34
at 2012-11-13T18:34

By Queena
at 2012-11-16T16:38
at 2012-11-16T16:38

By Joseph
at 2012-11-20T10:47
at 2012-11-20T10:47

By Erin
at 2012-11-22T12:47
at 2012-11-22T12:47

By Eden
at 2012-11-23T16:03
at 2012-11-23T16:03

By Elizabeth
at 2012-11-25T09:35
at 2012-11-25T09:35

By Heather
at 2012-11-28T05:42
at 2012-11-28T05:42
Related Posts
取得遠端執行程序的return code

By Edith
at 2012-11-09T05:02
at 2012-11-09T05:02
centos 軟體更新失敗

By John
at 2012-11-09T00:44
at 2012-11-09T00:44
ubuntu如何關閉unity?

By Tristan Cohan
at 2012-11-08T21:11
at 2012-11-08T21:11
Steam for Linux BETA

By Ingrid
at 2012-11-08T09:48
at 2012-11-08T09:48
gzip後硬碟空間消失

By Linda
at 2012-11-08T04:36
at 2012-11-08T04:36