find /opt/myapp/log/ -mtime +120 -type f -exec rm {} \;
http://www.howtogeek.com/howto/ubuntu/delete-files-older-than-x-days-on-linux/
Software Engineer is(should be) a most efficient Problem Solver.
find /opt/myapp/log/ -mtime +120 -type f -exec rm {} \;
http://www.howtogeek.com/howto/ubuntu/delete-files-older-than-x-days-on-linux/
### command
find ${TARGET_DIR}/*.xml -type f | xargs grep -l ${SEARCH_WORD} | awk '{ num = split($0, array, "/"); print array[num];}' | awk '{ num = split($0, array, "."); print array[1];}'