Operating System - HP-UX
1834116 Members
2518 Online
110063 Solutions
New Discussion

Re: HP-UX's find and "printf" function

 
Maicon Stihler
Advisor

HP-UX's find and "printf" function

Hi,
how can I mimic the following command using HP-UX's find?

CRON_CHECK="`find /var/log/backup/log.barc -newer $DUMMYFILE -printf %Td/%Tm/%Ty`"

I gave up installing GNU findutils, my boss doesnt want to... it sounds silly, but hey... he is the boss, heh...

Thanks
2 REPLIES 2
RAC_1
Honored Contributor

Re: HP-UX's find and "printf" function

CRON_CHECK="`find /var/log/backup/log.barc -newer $DUMMYFILE`" | xargs -n1 printf "%Td/%Tm/%Ty"

Does that help??
There is no substitute to HARDWORK
Maicon Stihler
Advisor

Re: HP-UX's find and "printf" function

I guess it solves the problem, Ill run some tests here and see if it works as expected. thank you :)