シェルスクリプト総合 その26at UNIXシェルスクリプト総合 その26 - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト400:名無しさん@お腹いっぱい。 17/10/26 13:29:36.84 .net >>394 for VAR in ARGS; do command; done 401:名無しさん@お腹いっぱい。 17/10/26 13:30:47.44 .net sh -xで実行してみると以下の通り出力されました + PATH=/var/log/ + PATH2=dnsmasq.log + DOT=. + PATH3=/var/log/dnsmasq.log.6 + expr 6 - 1 ./splitLog.sh: 1: ./splitLog.sh: expr: not found + PATH4= + PATH5=/var/log/dnsmasq.log. + mv /var/log/dnsmasq.log. /var/log/dnsmasq.log.6 ./splitLog.sh: 12: ./splitLog.sh: mv: not found (省略) + PATH3=/var/log/dnsmasq.log.1 + expr 1 - 1 ./splitLog.sh: 1: ./splitLog.sh: expr: not found + PATH4= + PATH5=/var/log/dnsmasq.log. + mv /var/log/dnsmasq.log. /var/log/dnsmasq.log.1 ./splitLog.sh: 12: ./splitLog.sh: mv: not found + PATH6=0 + mv /var/log/dnsmasq.log /var/log/dnsmasq.log0 ./splitLog.sh: 17: ./splitLog.sh: mv: not found + exit 0 402:名無しさん@お腹いっぱい。 17/10/26 13:46:18.65 .net とりあえず何がしたいかを書け そんな汚いもん見せられても何がしたいのか分かりにくい 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch