2010-03-29から1日間の記事一覧
#!/bin/sh #autotar.sh ディレクトリ名 [ディレクトリ名...] #limit(単位はキロバイト)に指定した容量に達しているディレクトリを #tarとgzipで圧縮する limit=1000 dir=$* for str in `ls -d $dir`; do line=`du -sk $str` set -- $line match=`echo "$2" |…
#!/bin/sh #autotar.sh ディレクトリ名 [ディレクトリ名...] #limit(単位はキロバイト)に指定した容量に達しているディレクトリを #tarとgzipで圧縮する limit=1000 dir=$* for str in `ls -d $dir`; do line=`du -sk $str` set -- $line match=`echo "$2" |…