several find commands

Computer/linux 2011.01.18 04:01
find "first100" filename before 20 days ago in DIR and sort by name, and ls

find DIR /. -ctime +20 -type f -iname "first100*" | sort -n | xargs ls -lthr

delete them

rm -rf `find DIR/. -ctime +20 -type f -iname "first100*" | sort -n`

'Computer > linux' 카테고리의 다른 글

ssh connection without typing password  (0) 2011.01.19
several find commands  (0) 2011.01.18
Error read: Connection reset by peer when sshfs is using.  (0) 2010.12.21
FAT32 format in Linux  (0) 2010.10.31
posted by citadel