$ for i in {1..365}; do touch -t `date -d "-$i days" '+%Y%m%d%H%M'` hoge-`date -d "-$i days" '+%Y-%m-%d-%H%M%S'`.log; done $ ls -ltr|head -10 total 0 -rw-r--r-- 1 oracle oinstall 0 Jan 28 2009 hoge-2009-01-28-173905.log -rw-r--r-- 1 oracle oinstall 0 Jan 29 2009 hoge-2009-01-29-173905.log -rw-r--r-- 1 oracle oinstall 0 Jan 30 2009 hoge-2009-01-30-173905.log -rw-r--r-- 1 oracle oinstall 0 Jan 31 2009 hoge-2009-01-31-173905.log -rw-r--r-- 1 oracle oinstall 0 Feb 1 2009 hoge-2009-02-01-173905.log -rw-r--r-- 1 oracle oinstall 0 Feb 2 2009 hoge-2009-02-02-173905.log -rw-r--r-- 1 oracle oinstall 0 Feb 3 2009 hoge-2009-02-03-173905.log -rw-r--r-- 1 oracle oinstall 0 Feb 4 2009 hoge-2009-02-04-173905.log -rw-r--r-- 1 oracle oinstall 0 Feb 5 2009 hoge-2009-02-05-173905.log