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 -->
  #2 (permalink)  
Old 08-21-2007
hegemaro hegemaro is offline
Registered User
 

Join Date: Feb 2006
Location: Schenectady, NY
Posts: 130
Just add a '$' at the end of your pattern to match the end of the line:

grep "pattern$"
Reply With Quote