請問find排除目錄的方法 - Linux
By Adele
at 2013-01-15T18:01
at 2013-01-15T18:01
Table of Contents
我要找出過去240分鐘在/nas/123內所建立的檔案,但是要排除TEST目錄
以下是我下的指令
find /nas/123/ -not -wholename 'TEST' -mmin -240 -type f
但是TEST底下的東西還是會顯示出來
/nas/123/201301151658.txt
/nas/123/TEST/456.txt~
/nas/123/TEST/456.txt
請問我是誤解了這個 -not + -wholename的功能?
那正確指令應該要怎麼下?
--
會當凌絕頂,一覽眾山小。 —— 杜甫
--
以下是我下的指令
find /nas/123/ -not -wholename 'TEST' -mmin -240 -type f
但是TEST底下的東西還是會顯示出來
/nas/123/201301151658.txt
/nas/123/TEST/456.txt~
/nas/123/TEST/456.txt
請問我是誤解了這個 -not + -wholename的功能?
那正確指令應該要怎麼下?
--
會當凌絕頂,一覽眾山小。 —— 杜甫
--
Tags:
Linux
All Comments
By Oscar
at 2013-01-20T17:36
at 2013-01-20T17:36
By Doris
at 2013-01-25T14:32
at 2013-01-25T14:32
By Genevieve
at 2013-01-25T17:13
at 2013-01-25T17:13
By Zora
at 2013-01-26T01:51
at 2013-01-26T01:51
By Oscar
at 2013-01-29T09:48
at 2013-01-29T09:48
By Emma
at 2013-01-30T18:45
at 2013-01-30T18:45
By Gilbert
at 2013-02-01T00:41
at 2013-02-01T00:41
By Rebecca
at 2013-02-02T12:29
at 2013-02-02T12:29
By Brianna
at 2013-02-05T18:22
at 2013-02-05T18:22
Related Posts
臨門一腳 幫助 Plasma Active 4 變的更好
By Brianna
at 2013-01-15T12:48
at 2013-01-15T12:48
Qt 寫的 C++ 程式 將可以重新編譯變成 HTML5+JS
By Erin
at 2013-01-15T11:26
at 2013-01-15T11:26
MIT/GNU 雙授權
By Blanche
at 2013-01-15T10:17
at 2013-01-15T10:17
請問chrome的插件資料夾在那裡???
By Irma
at 2013-01-14T19:25
at 2013-01-14T19:25
Canonical 台北辦公室徵人
By Olga
at 2013-01-14T19:17
at 2013-01-14T19:17