shell-script-pt
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Re: [Shell] - Ajuda
From
:
itamarnet
Subject
:
Re: [Shell] - Ajuda
Date
:
31 Jul 2016 04:18:44 -0700
Caro Paulo
Você não precisa fazer esse bloco for no awk
Experimente trocar seu código em awk por isso:
awk -F '" "' '$5=="2"{sub("2","3",$5)};1'
Caro Vinicius
É apenas no campo 5 mesmo?
Reparei que a última linha tem 7 campos e os 2 primeiros tem 6 campos.
Se acaso for o penúltimo campo o trecho em awk pode ser então
awk '$(NF-1)=="\"2\"" {sub("2","3",$(NF-1))};1'
Caro Victor
Essa é uma sugestão baseado no seu sed
sed -r 's/(("[^"]*" ){4}")2(" ".*")/\13\3/g'
Espero que as sugestões ajudem
[]'s
Itamar
reply via email to
[
Prev in Thread
]
Current Thread
[
Next in Thread
]
[Shell] - Ajuda
,
Vinicius Xavier
,
2016/07/29
Re: [shell-script] [Shell] - Ajuda
,
phfbettega
,
2016/07/29
Re: [shell-script] [Shell] - Ajuda
,
Victor Salustrino Bezerra
,
2016/07/29
Re: [shell-script] [Shell] - Ajuda
,
Vinicius Xavier
,
2016/07/30
Re: [shell-script] [Shell] - Ajuda
,
phfbettega
,
2016/07/31
Re: [Shell] - Ajuda
,
itamarnet
<=
Re: [shell-script] Re: [Shell] - Ajuda
,
phfbettega
,
2016/07/31
Re: [shell-script] Re: [Shell] - Ajuda
,
itamarnet
,
2016/07/31
Re: [shell-script] Re: [Shell] - Ajuda
,
phfbettega
,
2016/07/31
Prev by Date:
Re: [shell-script] [Shell] - Ajuda
Next by Date:
Re: [shell-script] Re: [Shell] - Ajuda
Previous by thread:
Re: [shell-script] [Shell] - Ajuda
Next by thread:
Re: [shell-script] Re: [Shell] - Ajuda
Index(es):
Date
Thread