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 -->
  #6 (permalink)  
Old 02-28-2006
WillImm123 WillImm123 is offline
Registered User
 

Join Date: Feb 2006
Posts: 5
I have pattern file

==> cat pattern
def
bc

Datafile
==> cat testgrep.txt
abc,lmn
def,xyz
ghi,h
jkl

I tried this
==> /usr/xpg4/bin/grep -f pattern testgrep.txt
abc,lmn

==> /usr/xpg4/bin/grep -E -f pattern testgrep.txt
abc,lmn

==> /usr/xpg4/bin/grep -F -f pattern testgrep.txt
abc,lmn


I am not getting the second line which contains def.
Reply With Quote