お世話になっております。
下記のバッチで回線速度の計測をおこなっているのですが、
出力されるログに何処にアクセスしたか判別できるように
各ログの先頭に名前を付けたいのですが、どのようにすればよろしいでしょう?
wget -O nul -a wget.log -t 3 -T 20 http://www.asahi-net.or.jp/~yh8n-wke/image/speed_imagec1.jpg wget -O nul -a wget.log -t 3 -T 20 http://homepage3.nifty.com/bnr/image/speed_imagec1.jpg wget -O nul -a wget.log -t 3 -T 20 http://bnr.on.arena.ne.jp/image/speed_imagec1.jpg wget -O nul -a wget.log -t 3 -T 20 http://www5d.biglobe.ne.jp/~adsl/image/speed_imagec1.jpg findstr saved wget.log >> result.log del wget.log
上記バッチを実行すると出力されるログ↓
2018-11-11 15:56:26 (15.2 MB/s) - `nul' saved [2804585/2804585] 2018-11-11 15:56:27 (13.3 MB/s) - `nul' saved [2804585/2804585] 2018-11-11 15:56:29 (1.19 MB/s) - `nul' saved [2804585/2804585] 2018-11-11 15:57:04 (14.0 MB/s) - `nul' saved [2804585/2804585]
以下のようにlogを出力したいです。
asahi 2018-11-11 15:56:26 (15.2 MB/s) - `nul' saved [2804585/2804585] home 2018-11-11 15:56:27 (13.3 MB/s) - `nul' saved [2804585/2804585] brn 2018-11-11 15:56:29 (1.19 MB/s) - `nul' saved [2804585/2804585] biglob 2018-11-11 15:57:04 (14.0 MB/s) - `nul' saved [2804585/2804585]
どなたかアドバイスお願い致します。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2018/11/12 12:42
退会済みユーザー
2018/11/12 12:52
退会済みユーザー
2018/11/19 13:00
2018/11/19 13:29
2018/11/19 13:32
退会済みユーザー
2018/11/19 13:37
2018/11/19 13:51
退会済みユーザー
2018/11/20 10:39
2018/11/20 11:42
退会済みユーザー
2018/11/20 11:51
2018/11/20 11:59
退会済みユーザー
2018/11/20 12:09
2018/11/20 12:13
退会済みユーザー
2018/11/20 12:22
2018/11/20 13:22
2018/11/20 13:41 編集
退会済みユーザー
2018/11/20 14:03
2018/11/20 15:16
退会済みユーザー
2018/11/22 12:29