Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (11) AWS (5) numerology (5)

Wednesday, July 30, 2014

How to remove large log files + HPUX

How to remove large log files:

Assume the present working directory (PWD) is /var and we want to delete all log files generated on Apr 30:

#cd /var
#for i in `ls -lrt | grep -i "Apr 30" | awk 'print {$9}'`
do
rm -rf  $i
done






Thanks...
Kiran Jadhav


**Let's Share our knowledge and keep visiting here**

No comments:

Post a Comment