find /home/bash/logs/ -type d -name "logs*" -mtime 0 -exec rm -rv {} \;
find /home/bash/fcubs/ -name 'logs*' -mtime 4 -daystart -delete
This is for Oracle Linux i need for solaris thanks in advance
find /home/bash/logs/ -type d -name "logs*" -mtime 0 -exec rm -rv {} \;
find /home/bash/fcubs/ -name 'logs*' -mtime 4 -daystart -delete
This is for Oracle Linux i need for solaris thanks in advance
Copyright © 2021 Jogjafile Inc.
Try the second command w/o
-daystartand-deleteFirst should exec w/o problem in Solaris