2 Minutes To Code
(β Version)
HOME
UNIX COMMANDS
JSP
SERVLETS
LOG4J
JUNIT
MOCKITO
EASYMOCK
JSON
APACHE HTTP CLIENT
JDK COMAMNDS
JMETER
MEMCACHE
ECLIPSE
TOMCAT
SIMON
Introduction
Overview
Usage and Examples
Basic usage
Case-insensitive matching
Wildcard *
Square Brackets
Match start of line
Match end of line
Curly Brackets
OR operator
AND construct
Alternate AND construct
Get non-matching lines
Display line-numbers with matching lines
Get n lines after match
Get n lines before match
Get n lines before and after match
Recursively search sub-folders
Match whole words
Count of matching lines
'grep' command - 2 minute tutorial
Category :
Home
>
Unix Commands
17 Jul, 2012
Previous
Next
How to grep case-insensitively
Previous
Next
Recommended Articles
'paste' command
'rm' command
'chmod' command
'uniq' command
Apache Tomcat
'time' command
'jhat' command
'paste' command
JMeter
'cp' command