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 the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-23-2008
Prateek007 Prateek007 is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 20
Question How to come out of this

Hi,

i have to search for all files named FILE in my particular directory, which is /abc.

when i am using 'find /abc -newer file2 -print | xargs ls -ld | grep 'FILE'

this gives me all the files but the problem is, it takes all the files which comes under /abc/def also and all other diirectory for the same file name FILE.

i want to restrict my search to this particular directory, and i need all FILE under only /abc, not /abc/def

can someone please guide me on this.