Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!sdd.hp.com!hplabs!hpcc05!hpcc01!maryhc From: maryhc@hpcc01.HP.COM (Mary Hsia-Coron) Newsgroups: comp.unix.questions Subject: Do you use find command? Message-ID: <2570005@hpcc01.HP.COM> Date: 16 May 91 21:18:28 GMT Organization: HP Corp Computing & Services Lines: 41 Do you use the -print and -depth options with the find command? -print option: -------------- All the manual pages I've read recommend using -print to display output from find. I've found that -print is unnecessary on my HP-UX systems (7.0 HP-UX and later releases). For example, find / -user pat works fine. Question: --------- On your UNIX system, must -print be used to display the results of find? (Please state what flavor of UNIX you have: ULTRIX, SUN, ZENIX, etc.) -depth option: -------------- The AT&T System V manual pages say that when find is used with cpio, -depth should be used to list files in directories without write permission. For example: find / -name report -depth | cpio -ov > /dev/rmt/0h On HP-UX systems, find will list files in directories without write permission even when -depth is NOT used. Question: --------- On your UNIX system, must find be used with -depth when piping to cpio? (Please state what flavor of UNIX you have: ULTRIX, SUN, ZENIX, etc.) I'm documenting use of find on UNIX systems IN GENERAL and want to make the right recommendations about whether to use -print and -depth. I was going to recommend that both options not be used. Thanks for any info you can provide! Mary Hsia-Coron Hewlett-Packard Customer Training mary@hpasdd.hp.com