|
From: | 빠는 Leonardo Goretti |
Subject: | Re: [shell-script] AWK - Mudança de linha |
Date: | Fri, 26 Oct 2018 11:31:31 -0300 |
Opa!
Tente assim:
iwinfo wlan0 assoclist | awk '/SNR|TX/ {print $1,$2}' | sed 's/\nTX://g'
[]s,
On Fri, Oct 26, 2018 at 10:46 AM address@hidden
[shell-script] <address@hidden> wrote:
>
>
>
> Opa, Pessoal.
>
>
> Preciso subir um determinado dados, que está uma linha abaixo, para linha de cima. Isso tudo com o awk.
>
>
> Contexto:
>
>
> Comando:
>
>
> iwinfo wlan0 assoclist | awk '/SNR|TX/ {print $1,$2}'
>
>
> Saída:
>
>
> 88:53:2E:82:20:8A -42
>
> TX: 130.0
>
> C0:25:E9:29:18:2F -55
>
> TX: 115.6
>
>
> Preciso que fique dessa forma (Eliminando a string TX):
>
>
> 88:53:2E:82:20:8A -42 130.0
>
> C0:25:E9:29:18:2F -55 115.6
>
>
> Obrigado.
>
>
>
--
Vinicius Costa Carvalho
"Se enxerguei mais longe, foi porque me apoiei sobre os ombros de gigantes."
Isaac Newton
--Leonardo GorettiGerência e OperaçõesCelular: +55 (61) 97402-3166Analista de infraestrutura - GNU/LINUXInstrutor GNU/LINUXItil V3
Gtalk: address@hiddenU2Ugdm9jw6ogZGVjcnlwdG91IMOpIHBvciBxdWUgc2FiZSBkYXMgY29pc2FzCg==----------------------------------------------
[Prev in Thread] Current Thread [Next in Thread]
- AWK - Mudança de linha, andrelucio . fc, 2018/10/26
- Re: [shell-script] AWK - Mudança de linha, Vinicius Costa Carvalho, 2018/10/26
- Re: [shell-script] AWK - Mudança de linha, 빠는 Leonardo Goretti <=
- Re: [shell-script] AWK - Mudança de linha, phfbettega, 2018/10/26
- Re: AWK - Mudança de linha, andrelucio . fc, 2018/10/26
- Re: AWK - Mudança de linha, andrelucio . fc, 2018/10/26
- Re: [shell-script] Re: AWK - Mudança de linha, phfbettega, 2018/10/26
- Re: AWK - Mudança de linha, itamarnet, 2018/10/26
- Re: AWK - Mudança de linha, andrelucio . fc, 2018/10/26
- Re: [shell-script] Re: AWK - Mudança de linha, T.Collons, 2018/10/27
- Prev by Date: Re: [shell-script] AWK - Mudança de linha
- Next by Date: Re: [shell-script] AWK - Mudança de linha
- Previous by thread: Re: [shell-script] AWK - Mudança de linha
- Next by thread: Re: [shell-script] AWK - Mudança de linha
- Index(es):