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 02-28-2006
Ygor's Avatar
Ygor Ygor is online now
Moderator
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,258
Perhaps use an extended regular expression...
Code:
egrep '(file.*testfile|testfile.*file)' file*
Reply With Quote