- 論壇徽章:
- 0
|
當(dāng)然目錄下有很多*.c和其他普通文件。
想將非*.c的文件找出來(lái),可是在使用find的時(shí)候遇到困難,不知道如何查找非-name所指定的文件
find ./ -name "*.c" ##查所有*.c文件
如何查所有非*.c的文件呢?
在man find的時(shí)候遇到怪事情,有很多<A1><AF>出現(xiàn),搞得不知道m(xù)an所表達(dá)的意思,你們遇到過(guò)這樣的情況沒(méi)有,我使用的是fedora2.
-name pattern
Base of file name (the path with the leading directories removed) matches shell pattern pattern. The metacharacter (<A1><AE>*<A1><AF>, <A1><AE>?<A1><AF>, and <A1><AE>[]<A1><AF> do not match a <A1><AE>.<A1><AF> at the start of
the base
name. To ignore a directory and the files under it, use -prune;
see an example in the description of -path. |
|