Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
FIND.1
Upload User: jnzhq888
Upload Date: 2007-01-18
Package Size: 51694k
Code Size: 2k
Category:
OS Develop
Development Platform:
WINDOWS
- .TH FIND 1
- .SH NAME
- find - find files meeting a given condition
- .SH SYNOPSIS
- fBfind fIdirectory fIexpressionfR
- .br
- .de FL
- .TP
- \fB\$1\fR
- \$2
- ..
- .de EX
- .TP 20
- \fB\$1\fR
- # \$2
- ..
- .SH EXAMPLES
- .EX "find / -name a.out -print " "Print all fIa.outfR paths"
- .EX "find /usr/ast ! -newer f -ok rm {} \\^; " "Ask before removing"
- .EX "find /usr -size +20 -exec mv {} /big \\^; " "move files > 20 blks"
- .EX "find / ( -name a.out -o -name (fm*.o(fm ) -exec rm {}\\^;" "2 conds"
- .SH DESCRIPTION
- .PP
- fIFindfR descends the file tree starting at the given directory checking
- each file in that directory and its subdirectories against a predicate.
- If the predicate is true, an action is taken. The predicates may be
- connected by fB-afR (Boolean and), fB-ofR (Boolean or) and !
- (Boolean negation).
- Each predicate is true under the conditions specified below. The integer
- fInfR may also be +fInfR to mean any value greater than fInfR,
- fI-nfR to mean any value less than
- fInfR, or just fInfR for exactly fInfR.
- .PP
- .ta 0.25i 1.0i
- .nf
- -name s true if current filename is fIsfR (include shell wild cards)
- -size n true if file size is fInfR blocks
- -inum n true if the current file's i-node number is fInfR
- -mtime n true if modification time relative to today (in days) is fInfR
- -links n true if the number of links to the file is fInfR
- -newer f true if the file is newer than fIffR
- -perm n true if the file's permission bits = fInfR (fInfR is in octal)
- -user u true if the uid = fIufR (a numerical value, not a login name)
- -group g true if the gid = fIgfR (a numerical value, not a group name)
- -type x where fIxfR is fBbcdfugfR (block, char, dir, regular file, setuid, setgid)
- -xdev do not cross devices to search mounted file systems
- .fi
- .PP
- Following the expression can be one of the following, telling what to do
- when a file is found:
- .PP
- .nf
- -print print the file name on standard output
- -exec execute a s-2MINIXs0 command, {} stands for the file name
- -ok prompts before executing the command
- .fi
- .SH "SEE ALSO"
- .BR test (1),
- .BR xargs (1).