The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 02-28-2006
WillImm123 WillImm123 is offline
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
Reply With Quote