- 论坛徽章:
- 0
|
当然目录下有很多*.c和其他普通文件。
想将非*.c的文件找出来,可是在使用find的时候遇到困难,不知道如何查找非-name所指定的文件
find ./ -name "*.c" ##查所有*.c文件
如何查所有非*.c的文件呢?
在man find的时候遇到怪事情,有很多<A1><AF>出现,搞得不知道man所表达的意思,你们遇到过这样的情况没有,我使用的是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. |
|