적당히 알아서 수정해서 쓸 것.
#!/bin/sh
echo "Input target directory (ex. /home) : \c"
read DIR
echo "A few days ago do you want to delete the file? (ex. 5) : \c"
read N_DAY
find $DIR -mtime +$N_DAY -exec rm {} \;
'IT > Unix' 카테고리의 다른 글
Creating swapfile in Linux (0) | 2021.11.01 |
---|---|
[Linux/Unix] Delete Semaphore (1) | 2016.03.22 |
[Linux] YUM 커널 update후 잔재 제거 (0) | 2011.07.13 |
[AIX] alt disk backup (0) | 2011.05.27 |
NMON Analyser 3.3g Release (0) | 2011.05.25 |