全文検索:
- 24 バックアップシェル(backup.sh)
- -l PATH=/sbin:/bin:/usr/sbin:/usr/bin:/root/bin 10 0 * * * backup.sh -H root@hogehost -l hogehost -p day > /var/log/backup_day.log 2>&1 10 1 1 * * backup.sh -H root@hogehost -l hogehost -p... ar/log/backup_month.log 2>&1 ## hosts に書いておくパターン 10 0 * * * backup.sh -H hogehost -p day > /var/log/backup_day.log 2>&1 10 1 1 * * backup.sh -H hogehost -p month > /var/log
- 04 引数の取得
- rg 4 = d Arg 5 = e Arg 6 = f Arg 7 = g Arg 8 = h Arg 9 = i Arg 10 = j Arg 11 = k </code> {{tag>bash}}
- 10 IPアドレス判定
- ====== 10 IPアドレス判定 ====== <code console> if [ -n "`echo $IP |sed 's/^\([0-9]\{1,3\}\)\.\([0-9]\{1,3\}
- 20 awkで合計
- == カラムが複数 ===== <code> $ cat a 1 2 2 3 3 5 4 8 5 10 $ cat a| awk '{s1+=$1} {s2+=$2} END {print s1" "