2017-10-01から1ヶ月間の記事一覧
#!/bin/sh#directory_name #dir = "/home/roo/work/test"#if file get 5,extinguish files other than latest 5 files if test -n "`ls -t /home/roo/work/test/* | tail -n+6`";then rm `ls -t /home/roo/work/test/* | tail -n+6` fi
#!/bin/sh#directory_name #dir = "/home/roo/work/test"#if file get 5,extinguish files other than latest 5 files if test -n "`ls -t /home/roo/work/test/* | tail -n+6`";then rm `ls -t /home/roo/work/test/* | tail -n+6` fi