SUMMARY: Find command changed at Solaris 7 ?

From: John Horne (J.Horne@plymouth.ac.uk)
Date: Mon Jun 21 1999 - 06:49:29 CDT


I got one reply to this so I guess I should summarise just in case anyone
searches for it in the archives.

Thomas Carter <tcarter@memc.com> replied:
     add a -print to the end of the find statement. This changed in 2.6,
     and I assume carried over to 7 (2.7).

Using the '-print' option works a treat (still don't know why it was
changed though!)

The original question was:
> I have noticed that some of our log files 'disappear' on our solaris 7
> systems. It turns out that the culprit is our housekeeping script, or more
> specifically a find command in it.
>
> Under Solaris 2.5.1 we have:
>
> find ./adm -type f -size +0c ! \( -name "sa??" -o -name "sar??" \)
>
> which works fine.
>
> Under Solaris 7 however the '! \( -name "sa??" -o -name "sar??" \)' bit
> doesn't seem to work. The 'sa' and 'sar' files are listed and subsequently
> get deleted (different part of the script).
>
> Changing it to:
>
> find ./adm -type f -size +0c ! -name "sa??" ! -name "sar??"
>
> seems to work fine. We have no Solaris 2.6 systems now so I don't know
> when the change occurred. I guess I'm more letting you know (if you didn't
> already) than anything, but if someone knows of any reason for the change
> or other 'gotchas' about the find command then I'd be glad to know.
>

Many thanks,

John.

--------------------------------------------------------------------------
John Horne, University of Plymouth, UK Tel: +44 (0)1752 233914
E-mail: jhorne@plymouth.ac.uk
Home page: http://jhorne.csd.plymouth.ac.uk
Finger for PGP key: john@jhorne.csd.plymouth.ac.uk



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:21 CDT