Flashnux

GNU/Linux man pages

Livre :
Expressions régulières,
Syntaxe et mise en oeuvre :

ISBN : 978-2-7460-9712-4
EAN : 9782746097124
(Editions ENI)

Unix

Unix v6

find(1)



find find files pathname expression recursively descends the directory hierarchy from seeking files that match a boolean written in the primaries given below. In the descriptions, the argument is used as a decimal integer where means more than means less than and means exactly name filename True if the argument matches the current file name. Normal argument syntax may be used if escaped (watch out for ‘[’, ‘?’ and ‘*’). perm onum True if the file permission flags exactly match the octal number (see chmod(I)). If is prefixed by a minus sign, more flag bits (017777, see stat(II)) become significant and the flags are compared: type c True if the type of the file is where is or for block special file, character special file, directory or plain file. links n True if the file has links. user uname True if the file belongs to the user group gname As it is for so shall it be for (someday). size n True if the file is blocks long (512 bytes per block). atime n True if the file has been accessed in days. mtime n True if the file has been modified in days. exec command True if the executed command returns exit status zero (most commands do). The end of the command is punctuated by an escaped semicolon. A command argument ‘{}’ is replaced by the current pathname. ok command Like except that the generated command line is printed with a question mark first, and is executed only if the user responds y. print Always true; causes the current pathname to be printed. The primaries may be combined with these operators (ordered by precedence): ! prefix a infix second operand evaluated only if first is true o infix second operand evaluated only if first is false ( expression ) parentheses for grouping. (Must be escaped.) To remove files named ‘a.out’ and ‘*.o’ not accessed for a week: find / "(" name a.out o name "*.o" ")" a atime +7 a exec rm {} ";" /etc/passwd sh (I), if(I), file system (V) There is no way to check device type.

Syntax should be reconciled with



find(1)