Why won't "find ./appl/x -depth -name nty -prune -o -print" not skip the nty directory?

Why won't "find ./appl/x -depth -name nty -prune -o -print" not skip the nty directory?

Post by Andrew Scot » Tue, 30 Apr 1996 04:00:00



I'm using the following command to create a list of files for a
cpio backup (hence the use of -depth) but
it will not ignore the contents of the "nty" sub-directory. If I
leave out -depth it will work.

find ./appl/x -depth -name nty -prune -o -print

Can you help?

I'm using SVR4 on a NCR 35XX machine.

Andrew Scott

========================================================================

Technology Consultant, WWIS,       Phone: +44 (1382) 592531
NCR, Kingsway West,                Fax: +44 (1382) 622198
Dundee, Scotland  DD2 3XX          VOICEplus: 341-253

 
 
 

Why won't "find ./appl/x -depth -name nty -prune -o -print" not skip the nty directory?

Post by Mike.Wesco » Sat, 04 May 1996 04:00:00



> I'm using the following command to create a list of files for a
> cpio backup (hence the use of -depth) but
> it will not ignore the contents of the "nty" sub-directory. If I
> leave out -depth it will work.

> find ./appl/x -depth -name nty -prune -o -print

The prune won't happen until a file called nty is seen, and that happens
*after* the contents are listed if you use the -depth option. Try

        find ./appl/x -depth -print | grep -v /nty/

--
        -Mike Wescott


 
 
 

1. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

My machine: P166+mmx, 32mb ram, 4gb HD with Win95 and Win NT 4.0 and
redhat5.1 co-existed in different partitions.

I issued "sndconfig" within a xterm inside X Window, The program
detects the SB 16 pnp card sets it up with no error message, but when
it launch ModProbe to test out, it gets a message states: An error was
encountered running the ModProbe program."  I tried different IRQ
settings, all ends with the same message.

2nd, When I try to mount /dev/cdrom from File Systerm Manager, the
following error is returned:  Can't find /dev/hdb in /etc/mtab or
/etc/fstab.

3nd, When my machine boots, it halts at "Sendmail" for about 3-5 mins
before it goes to next step.  Obviously there isn't any mail system on
the machine right now because it is a standalone.  How can take this
mail thing out and speed up booting?

last one, Is my Zoom 56k PCI FaxModem a Windmodem that Linux can't use
to connect me to my local isp?

Experts help me out please. thanks.

2. LAN/Gateway

3. X won't start "could not find font 'fixed'"

4. ISA Modem Stopped Working on RH6.1!

5. Why it's call "Linux" and not "GNU/Linux"

6. IP_masq and incoming telnets

7. Why doesn't echo "text" 'command' "more text" work?

8. running without swap space

9. GETSERVBYNAME()????????????????????"""""""""""""

10. Why doesn't echo "text" 'command' "more text" work?

11. lpr won't print - "Unable to get official name for local machine"

12. WHY 'exec "$REALFILE" ${1+"$@"}'

13. netstat -s output: "packets pruned" and "packets collapsed"