Enviado em 25/02/2013 - 16:04h
Olá,Enviado em 25/02/2013 - 16:30h
Retire o "v" e informe as que você quer, exemplo:grep -Ei "ring|outgoing|ringing" arquivo.txt
[root@TESTEPX001 teste_cut]# cat arquivo.txt SIP/3145-00015e73;pas;1100;1;Up;AppQueue;Outgoing;Line;3145;00:00:20;SIP/gateway-00015dfd SIP/3122-00015d72;pas;1006;1;Up;AppQueue;Outgoing;Line;3122;00:01:07;SIP/gateway-00015cfd linha sem a expressao procurada SIP/3021-00015ed0;pas;026950653;110;Ring;Dial;sip/gateway/126950653;00:00:03;None; SIP/3039-00015d95;pas;1100;1;Up;AppQueue;Outgoing;Line;3039;00:01:02;SIP/gateway-00015cfc outra linha sem a expressao procurada SIP/gateway-00015df4;from-trunk-sip-gatew;1;Ringing;None;None;00:00:41;None; [root@TESTEPX001 teste_cut]# grep -Ei "ring|outgoing|ringing" arquivo.txt SIP/3145-00015e73;pas;1100;1;Up;AppQueue;Outgoing;Line;3145;00:00:20;SIP/gateway-00015dfd SIP/3122-00015d72;pas;1006;1;Up;AppQueue;Outgoing;Line;3122;00:01:07;SIP/gateway-00015cfd SIP/3021-00015ed0;pas;026950653;110;Ring;Dial;sip/gateway/126950653;00:00:03;None; SIP/3039-00015d95;pas;1100;1;Up;AppQueue;Outgoing;Line;3039;00:01:02;SIP/gateway-00015cfc SIP/gateway-00015df4;from-trunk-sip-gatew;1;Ringing;None;None;00:00:41;None; [root@TESTEPX001 teste_cut]#
Enviado em 25/02/2013 - 16:22h
Tente:grep -Eiv "ring|outgoing|ringing" arquivo.txt
[root@TESTEPX001 teste_cut]# cat arquivo.txt SIP/3145-00015e73;pas;1100;1;Up;AppQueue;Outgoing;Line;3145;00:00:20;SIP/gateway-00015dfd SIP/3122-00015d72;pas;1006;1;Up;AppQueue;Outgoing;Line;3122;00:01:07;SIP/gateway-00015cfd linha sem a expressao procurada SIP/3021-00015ed0;pas;026950653;110;Ring;Dial;sip/gateway/126950653;00:00:03;None; SIP/3039-00015d95;pas;1100;1;Up;AppQueue;Outgoing;Line;3039;00:01:02;SIP/gateway-00015cfc outra linha sem a expressao procurada SIP/gateway-00015df4;from-trunk-sip-gatew;1;Ringing;None;None;00:00:41;None; [root@TESTEPX001 teste_cut]# grep -Eiv "ring|outgoing|ringing" arquivo.txt linha sem a expressao procurada outra linha sem a expressao procurada [root@TESTEPX001 teste_cut]#
Enviado em 25/02/2013 - 16:26h
grep -Eiv "ring|outgoing|ringing" arquivo.txt
[root@TESTEPX001 teste_cut]# cat arquivo.txt SIP/3145-00015e73;pas;1100;1;Up;AppQueue;Outgoing;Line;3145;00:00:20;SIP/gateway-00015dfd SIP/3122-00015d72;pas;1006;1;Up;AppQueue;Outgoing;Line;3122;00:01:07;SIP/gateway-00015cfd linha sem a expressao procurada SIP/3021-00015ed0;pas;026950653;110;Ring;Dial;sip/gateway/126950653;00:00:03;None; SIP/3039-00015d95;pas;1100;1;Up;AppQueue;Outgoing;Line;3039;00:01:02;SIP/gateway-00015cfc outra linha sem a expressao procurada SIP/gateway-00015df4;from-trunk-sip-gatew;1;Ringing;None;None;00:00:41;None; [root@TESTEPX001 teste_cut]# grep -Eiv "ring|outgoing|ringing" arquivo.txt linha sem a expressao procurada outra linha sem a expressao procurada [root@TESTEPX001 teste_cut]#
Enviado em 25/02/2013 - 17:04h
grep -Ei "ring|outgoing|ringing" arquivo.txt
[root@TESTEPX001 teste_cut]# cat arquivo.txt SIP/3145-00015e73;pas;1100;1;Up;AppQueue;Outgoing;Line;3145;00:00:20;SIP/gateway-00015dfd SIP/3122-00015d72;pas;1006;1;Up;AppQueue;Outgoing;Line;3122;00:01:07;SIP/gateway-00015cfd linha sem a expressao procurada SIP/3021-00015ed0;pas;026950653;110;Ring;Dial;sip/gateway/126950653;00:00:03;None; SIP/3039-00015d95;pas;1100;1;Up;AppQueue;Outgoing;Line;3039;00:01:02;SIP/gateway-00015cfc outra linha sem a expressao procurada SIP/gateway-00015df4;from-trunk-sip-gatew;1;Ringing;None;None;00:00:41;None; [root@TESTEPX001 teste_cut]# grep -Ei "ring|outgoing|ringing" arquivo.txt SIP/3145-00015e73;pas;1100;1;Up;AppQueue;Outgoing;Line;3145;00:00:20;SIP/gateway-00015dfd SIP/3122-00015d72;pas;1006;1;Up;AppQueue;Outgoing;Line;3122;00:01:07;SIP/gateway-00015cfd SIP/3021-00015ed0;pas;026950653;110;Ring;Dial;sip/gateway/126950653;00:00:03;None; SIP/3039-00015d95;pas;1100;1;Up;AppQueue;Outgoing;Line;3039;00:01:02;SIP/gateway-00015cfc SIP/gateway-00015df4;from-trunk-sip-gatew;1;Ringing;None;None;00:00:41;None; [root@TESTEPX001 teste_cut]#
Automatizando digitação de códigos 2FA no browser
Resolver problemas de Internet
Como compartilhar a tela do Ubuntu com uma Smart TV (LG, Samsung, etc.)
Como converter imagens PNG/JPEG para SVG em linha de comando
Fez porcaria no teu repositório Git? Aprenda a restaurar uma versão anterior do seu código!
Restaurando Fontes de Download do Hydra no Linux
Atualizando "na marra" o YT-DLP quando começa a dar erro de downloads
Como instalar o WPS com interface e corretor ortográfico em PT-BR no Arch Linux
Fila de impressão em C++ [RESOLVIDO] (6)
Bluetooth CSR 4.0 Dongle (Alternativo) (4)
Controle do PS5 no Linux Mint funciona? [RESOLVIDO] (6)