Re: Powerfull Find (75 Views)
Reply
Super Advisor
AZayed
Posts: 391
Registered: ‎04-12-2008
Message 26 of 33 (75 Views)

Re: Powerfull Find

Hi,

Thanks for answering, my last question is how to run find command in UNIX95 environment.

Regards,
Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.
Please use plain text.
Honored Contributor
OldSchool
Posts: 3,372
Registered: ‎09-09-2004
Message 27 of 33 (75 Views)

Re: Powerfull Find

setting the UNIX95 variable in the command line for find will do it, for example

UNIX95= find . -name testdunce -mtime ....

setting / exporting UNIX95 will also work, but I don't recommend that approach as that variable influences a bunch of different things, like the "ps" command as well, and so could inadvertantly cause havoc.
Please use plain text.
Honored Contributor
OldSchool
Posts: 3,372
Registered: ‎09-09-2004
Message 28 of 33 (75 Views)

Re: Powerfull Find

also, note that UNIX95= was followed by a space....
Please use plain text.
Super Advisor
AZayed
Posts: 391
Registered: ‎04-12-2008
Message 29 of 33 (75 Views)

Re: Powerfull Find

Thanks,

A lot of useful information & ideas,

Regards,
Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,786
Registered: ‎03-06-2006
Message 30 of 33 (75 Views)

Re: Powerfull Find

>JRF: And just where in the HP-UX manpages did you find that?

I had to look at the 11.31 sources.

>... When find figures out how many 24-hour periods ago the file was last accessed, any fractional part is ignored..."

That's the default, non UNIX95 functionality.
Please use plain text.
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 31 of 33 (75 Views)

Re: Powerfull Find

Hi (again):

>Dennis: I had to look at the 11.31 sources.

Ah, thanks, it would be nice to be able to access those :-) I'm glad I didn't miss reading it. An update of the 11.31 manpages would be really nice ;-) [hint; hint]

Regards!

...JRF...
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,786
Registered: ‎03-06-2006
Message 32 of 33 (75 Views)

Re: Powerfull Find

>JRF: An update of the 11.31 manpages would be really nice

Ok, I filed QXCR1000875650 and mentioned this thread.
Please use plain text.
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 33 of 33 (75 Views)

Re: Powerfull Find

Hi:

> Dennis: Ok, I filed QXCR1000875650 and mentioned this thread

Dennis, a BIG THANK YOU for doing that!

Warm Regards!

...JRF...
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation