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
GREP.1
Upload User: jnzhq888
Upload Date: 2007-01-18
Package Size: 51694k
Code Size: 1k
Category:
OS Develop
Development Platform:
WINDOWS
- .TH GREP 1
- .SH NAME
- grep - search a file for lines containing a given pattern
- .SH SYNOPSIS
- fBgrepfR [fB-elnsvfR] fIpatternfR [fIfilefR] ...fR
- .br
- .de FL
- .TP
- \fB\$1\fR
- \$2
- ..
- .de EX
- .TP 20
- \fB\$1\fR
- # \$2
- ..
- .SH OPTIONS
- .FL "-e" "fB-e fIpatternfR is the same as fIpatternfP
- .FL "-c" "Print a count of lines matched"
- .FL "-i" "Ignore case"
- .FL "-l" "Print file names, no lines"
- .FL "-n" "Print line numbers"
- .FL "-s" "Status only, no printed output"
- .FL "-v" "Select lines that do not match"
- .SH EXAMPLES
- .EX "grep mouse file " "Find lines in fIfilefP containing fImousefP"
- .EX "grep [0-9] file" "Print lines containing a digit"
- .SH DESCRIPTION
- .PP
- .I Grep
- searches one or more files (by default, fIstdinfR) and selects out
- all the lines that match the pattern.
- All the regular expressions accepted by
- .I ed
- and
- .I mined
- are allowed.
- In addition, + can be used instead of (** to mean 1 or more occurrences,
- ? can be used to mean 0 or 1 occurrences, and
- | can be used between two regular expressions to mean either
- one of them.
- Parentheses can be used for grouping.
- If a match is found, exit status 0 is returned.
- If no match is found, exit status 1 is returned.
- If an error is detected, exit status 2 is returned.
- .SH "SEE ALSO"
- .BR cgrep (1),
- .BR fgrep (1),
- .BR sed (1),
- .BR awk (9).