The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Grep for Multiple patterns
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
Grep for Multiple patterns
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
7
(
permalink
)
02-28-2006
WillImm123
Registered User
Join Date: Feb 2006
Posts: 5
Hey Mahendra,
There was some syntax problem.
It worked with paatern file
Datafile
==> cat testgrep.txt
abc,lmn
def,xyz
ghi,h
jkl
==> cat pattern
def
abc
command
==> /usr/xpg4/bin/grep -F -f pattern testgrep.txt
abc,lmn
def,xyz
WillImm123
View Public Profile
Find all posts by WillImm123