Thursday, May 14, 2009

How to delete 30 days old file in AIX, Unix, Linux

find . -type f -mtime +50 -exec rm -f {} \;

How to delete files from udump directory.
rm -f `ls -alt | grep Sep | cut -c57-`