如何刪掉層層資料夾,但保留裡面某檔案? - Linux

By Franklin
at 2011-12-29T14:23
at 2011-12-29T14:23
Table of Contents
D/1-1/[...]/file
D/1-1/1-2/reserve
D/1-1/1-2/file
D/2-1/[...]/file
D/2-1/2-2/[...]/file
[...]略三十個
我想要把 D 底下的東西全部刪掉,但是保留 D/1-1/1-2/reverse
資料夾名稱基本上不會變
檔案名稱也不太會變(make 出來的)
有什麼方法可以讓我把除了 D/1-1/1-2/reverse 之外的檔案和資料夾都刪掉的方法嗎?
--
D/1-1/1-2/reserve
D/1-1/1-2/file
D/2-1/[...]/file
D/2-1/2-2/[...]/file
[...]略三十個
我想要把 D 底下的東西全部刪掉,但是保留 D/1-1/1-2/reverse
資料夾名稱基本上不會變
檔案名稱也不太會變(make 出來的)
有什麼方法可以讓我把除了 D/1-1/1-2/reverse 之外的檔案和資料夾都刪掉的方法嗎?
--
Tags:
Linux
All Comments

By Caroline
at 2011-12-31T04:35
at 2011-12-31T04:35

By Donna
at 2011-12-31T23:24
at 2011-12-31T23:24

By Hedwig
at 2012-01-01T16:14
at 2012-01-01T16:14

By Isabella
at 2012-01-05T04:08
at 2012-01-05T04:08
Related Posts
ubuntu 灌PCMANX時

By Ophelia
at 2011-12-29T03:19
at 2011-12-29T03:19
GCIN 和 HIME... 事情怎麼會變這樣?

By Una
at 2011-12-29T00:24
at 2011-12-29T00:24
偵測背景執行結束

By Brianna
at 2011-12-29T00:12
at 2011-12-29T00:12
ubuntu 灌PCMANX時

By Yedda
at 2011-12-29T00:04
at 2011-12-29T00:04
AIX There is not enough memory availabl

By Wallis
at 2011-12-29T00:03
at 2011-12-29T00:03