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 -->
  #2 (permalink)  
Old 05-04-2008
danmero danmero is offline Forum Advisor  
  
 

Join Date: Nov 2007
Location: 45.48-73.63
Posts: 1,439
You should take a look over man find
Tips: Find directory that contain the file message.jar

Code:
find /usr -type f -name "message.jar" -exec dirname {} \;

Once you read the manual you will understand how to fix the loop.

Success