Oracle Technology Blog

OraTech Blog provides tips,tricks,scripts and how-to type answers for Oracle related technologies. I use these commands very often, so I thought it would be useful to share with everybody. Please feel free to include your comments/corrections/questions.

Tuesday, May 30, 2006

Unix: HOW-TO remove largest(in size) five files

find . -name "*.*" -ls | sort +6 | tail -5

rm `find . -name "*.*" -ls | sort +6 | tail -5|cut -c68-`

alias large5="find ./ -name \"*.*\" -ls | sort +6 | tail -5"

0 Comments:

Post a Comment

<< Home