找出比某檔舊的檔案並刪除

| | Comments (0)

#!/bin/sh
if [ -z $1 ] ; then
echo "Usage: `echo $0` {file}"
else
if [ -f $1 ] ; then
find *tgz \! -newer $1 -exec rm {} \;
else
echo File does not exist.
fi
fi

Leave a comment

March 2009

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

About this Entry

This page contains a single entry by Pank published on December 11, 2003 9:34 AM.

netsh set IP was the previous entry in this blog.

NOKIA 手機看韌體版本 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.