|
From: | Tiago Tarifa |
Subject: | Re: [shell-script] Apagar linhas |
Date: | Wed, 24 May 2017 16:49:07 -0300 |
Boa tarde senhores, tenho um arquivo de log com linhas nesse formato:199.30.24.24 - - [23/May/2017:04:43:52 -0300] "GET /wp-content/plugins/contact-form-7/images/ajax-loader.gif HTTP/1.1" 200 847 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53 BingPreview/1.0b" 199.30.24.47 - - [23/May/2017:04:43:49 -0300] "GET /wp-admin/admin-ajax.php?action="">mode=get_token HTTP/1.1" 200 245 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53 BingPreview/1.0b" 62.138.16.34 - - [23/May/2017:04:46:10 -0300] "GET /robots.txt HTTP/1.1" 200 162 "-" "Linguee Bot (http://www.linguee.com/bot; address@hidden)"62.138.16.34 - - [23/May/2017:04:46:11 -0300] "GET / HTTP/1.1" 200 64125 "-" "Linguee Bot (http://www.linguee.com/bot; address@hidden)"62.138.16.34 - - [23/May/2017:04:46:14 -0300] "GET / HTTP/1.1" 200 64125 "-" "Linguee Bot (http://www.linguee.com/bot; address@hidden)"62.138.16.34 - - [23/May/2017:04:46:25 -0300] "GET /cinturao HTTP/1.1" 301 241 "-" "Linguee Bot (http://www.linguee.com/bot; address@hidden)"62.138.16.34 - - [23/May/2017:04:46:26 -0300] "GET /cinturao/ HTTP/1.1" 301 - "-" "Linguee Bot (http://www.linguee.com/bot; address@hidden)"62.138.16.34 - - [23/May/2017:04:46:33 -0300] "GET /cinturao/membership-signup/?_s2member_vars=page..level..3.. page..4..L2NpbnR1cmFvLw%3D%3D& _s2member_sig=1495525593- 04f5be1e3e11d34fcf10d8d4cd337e 56 HTTP/1.1" 200 23830 "-" "Linguee Bot (http://www.linguee.com/bot; address@hidden)" 62.138.16.34 - - [23/May/2017:04:46:34 -0300] "GET /onde-estamos/ HTTP/1.1" 200 184549 "-" "Linguee Bot (http://www.linguee.com/bot; address@hidden)"198.50.229.205 - - [23/May/2017:04:46:32 -0300] "POST /cinturao/wp-cron.php?doing_wp_cron=1495525591. 7453320026397705078125 HTTP/1.1" 200 - "http://www.comef.com.br/ cinturao/wp-cron.php?doing_wp_ " "WordPress/4.7.5; http://www.comef.com.br/cron=1495525591. 7453320026397705078125 cinturao "Queria apagar tudo q não tenha "http://www.comef.com.br/cinturao ", porém tenho que manter a linha toda, mesmo se houver quebra de linha, como no exemplo abaixo:98.50.229.205 - - [23/May/2017:04:46:32 -0300] "POST /cinturao/wp-cron.php?doing_wp_cron=1495525591. 7453320026397705078125 HTTP/1.1" 200 - "http://www.comef.com.br/ cinturao/wp-cron.php?doing_wp_ " "WordPress/4.7.5; http://www.comef.com.br/cron=1495525591. 7453320026397705078125 cinturao ",Pois elas aparecem de varias formas.--Eldimar Jaconias de SouzaAnalista de Suporte PlenoTel: (61) 9228-9214 / 3048-1034"O que fazer, pra onde ir senhor se só tu tens as palavras de Vida Eterna"ºvº "Software Livre: não é pelo dinheiro./( _ )\ É uma questão de consciência."^ ^
[Prev in Thread] Current Thread [Next in Thread]
- Apagar linhas, Eldimar Souza, 2017/05/24
- Re: [shell-script] Apagar linhas, Tiago Tarifa <=
- Re: [shell-script] Apagar linhas, phfbettega, 2017/05/24
- Prev by Date: Re: [shell-script] Re: Valor da variável do subshel l para o shell
- Next by Date: Re: [shell-script] Apagar linhas
- Previous by thread: Apagar linhas
- Next by thread: Re: [shell-script] Apagar linhas
- Index(es):