linux command

linux remove file based on date(e.g based on month)

ls -lah | grep ‘May’ | awk ‘ { print $12 } ‘ > name.txt
rm `cat name.txt`

find out the size of directory in Linux

what command to use to find out the size of directory in linux?

//assume u want to know the size of mydir

du -h  mydir | grep mydir$