⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 find.1

📁 UNIX v6源代码 这几乎是最经典的unix版本 unix操作系统设计和莱昂氏unix源代码分析都是用的该版
💻 1
字号:
.th FIND I 5/15/74.sh NAMEfind \*- find files.sh SYNOPSIS.bd findpathname expression.sh DESCRIPTION.it Findrecursively descendsthe directory hierarchy from.it pathnameseeking files that match a boolean.it expressionwritten in the primaries given below.In the descriptions, the argument.it nis used as a decimal integerwhere.it +nmeans more than.it n,.it \*-nmeans less than.it nand.it nmeans exactly.it n..s3.lp +16 16\fB\*-name\fR filename	True if the.it filenameargument matches the current file name.Normal.it Shellargument syntax may be used if escaped (watch out for`[', `?' and `*')..s3.lp +16 16\fB\*-perm\fR onum	\cTrue if the file permission flagsexactlymatch theoctal number.it onum(see chmod(I)).If.it onumis prefixed by a minus sign,more flag bits (017777, see stat(II)) become significant andthe flags are compared: .it "(flags&onum)==onum.".s3.lp +16 16\fB\*-type\fI c\fR	True if the type of the fileis.it c,where.it cis.bd "b, c, d"or.bd fforblock special file, character special file,directory or plain file..s3.lp +16 16\fB\*-links\fI n\fR	\cTrue if the file has.it nlinks..s3.lp +16 16\fB\*-user\fR uname	\cTrue if the file belongs to the user.it uname..s3.lp +16 16\fB\*-group\fR gname	\cAs it is for.bd \*-userso shall it be for.bd \*-group(someday)..s3.lp +16 16\fB\*-size\fI n\fR	\cTrue if the file is.it nblocks long (512 bytes per block)..s3.lp +16 16\fB\*-atime\fI n\fR	\cTrue if the file has been accessed in.it ndays..s3.lp +16 16\fB\*-mtime\fI n\fR	\cTrue if the file has been modified in.it ndays..s3.lp +16 16\fB\*-exec\fR command	\cTrue if the executed command returnsexit status zero(most commands do).The end of the command is punctuated by an escapedsemicolon.A command argument `{}' is replaced by thecurrent pathname..s3.lp +16 16\fB\*-ok\fR command	\cLike.bd \*-execexcept that the generated command line is printedwith a question mark first,and is executed only if the user responds\fBy\fR..s3.lp +16 16\fB\*-print\fR	\cAlways true;causes the current pathname to be printed..s3.i0The primaries may be combined with these operators(ordered by precedence):.s3.lp +16 16\fB!\fR	prefix .it not.s3.lp +16 16\fB\*-a\fR	infix.it and,second operand evaluated only if first is true.s3.lp +16 16\fB\*-o\fR	infix.it or,second operand evaluated only if first is false.s3.lp +16 16\fB( \fRexpression\fB )\fR	parentheses for grouping.(Must be escaped.).s3.i0To remove files named`a.out' and `*.o' not accessed for a week:.s3.lp +.5i 0find / "(" \*-name a.out \*-o \*-name "*.o" ")"\*-a \*-atime +7 \*-a \*-exec rm {} ";".i0.sh FILES/etc/passwd.sh "SEE ALSO"sh (I), if(I), file system (V).sh BUGSThere is no way to check device type..brSyntax should be reconciled with.it if.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -