AIX

 View Only
Expand all | Collapse all

Question command "find" aix 5.2.0.0

  • 1.  Question command "find" aix 5.2.0.0

    Posted Tue August 01, 2017 08:23 AM

    Originally posted by: NITOLI


    Hello everyone,

    I try to use the find command with the argument "-maxdepth" which does not exist under aix. I would like to know if you have an equivalent?

    My command is :

    find /exemple1/exemple2 -name "*.Z" -type f -maxdepth 1 -mtime +1800 -exec rm -f {} \

    Thanks to all

     



  • 2.  Re: Question command "find" aix 5.2.0.0

    Posted Tue August 01, 2017 11:16 AM

    Originally posted by: PetePDX


    Your running 5.2 ?

     



  • 3.  Re: Question command "find" aix 5.2.0.0

    Posted Tue August 01, 2017 12:13 PM

    Originally posted by: NITOLI


    Hello petePDX,

     

    yes i do... i can't do anything about it...



  • 4.  Re: Question command "find" aix 5.2.0.0

    Posted Wed August 02, 2017 01:27 PM

    Originally posted by: dimon


    Hi,

    Try installing GNU findutils (with rpm) which you can get from here:

    ftp://www.oss4aix.org/latest/aix52/

    If any prerequisites are needed, they are available from the same location.

    Then run /opt/freeware/bin/find instead of the native AIX 'find'.