The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
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 10-26-2006
hnhegde hnhegde is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 22
question about find command

I am not sure if this question has been answered earlier at the Unix Forums. I tried a search but could not find anything.
So here it goes...

I am looking for a log file under /home.
Code:
find /home dklog.log -print
This prints all the directories it traverses while looking for the file and in the end the search result is printed. An extract of the output is:
Code:
/home/f029778/AuditFlag
/home/f029778/AuditFlag/scripts
/home/f029778/AuditFlag/scripts/1.sh
/home/f029778/AuditFlag/scripts/2.sh
/home/f029778/AuditFlag/scripts/3.sh
/home/f029778/AuditFlag/scripts/4.sh
/home/f029778/AuditFlag/scripts/6.sh
/home/f029778/AuditFlag/scripts/7.sh
/home/f029778/AuditFlag/scripts/8.sh
/home/f029778/AuditFlag/scripts/GEA.sh
/home/f029778/AuditFlag/scripts/HEA1.sh
/home/f029778/AuditFlag/scripts/HEA2.sh
/home/f029778/AuditFlag/scripts/KEA.sh
/home/f029778/AuditFlag/scripts/KEA1.sh
/home/f029778/AuditFlag/scripts/SEA.sh
/home/f029778/AuditFlag/scripts/SEA4.sh
/home/f029778/AuditFlag/scripts/count.sh
/home/f029778/delme.sh
/home/f029778/file2.dat
/home/f029778/file1.dat
/home/f029778/tools
/home/f029778/tools/bin
/home/f029778/tools/bin/citadel_user_manager.sh
/home/f029778/tools/bin/dklog.log
/home/f029778/tools/dklog.log
/home/f029778/tools/lib
/home/f029778/tools/lib/citadel-tools.jar
/home/f029778/tools/lib/jconn2.jar
/home/f029778/tools/log
/home/f029778/tools/tp_groups.dat
/home/f029778/tools/tp_users.dat
dklog.log
Is there an option to just print the result, in this case and avoid the rest of the stuff?