removido
(usa Nenhuma)
Enviado em 27/09/2015 - 23:28h
Dá prá fazer com awk, sed, estas coisas:
VALOR=$(awk -F '"' '/^CPU=/ { V=$2; } END { V++; print V; }' seu-arquivo;)
sed -E "s/^CPU=\"[0-9]+\"$/CPU=\"$VALOR\"/g" seu-arquivo
Apesar que ou só sed, ou só awk resolve, acho que estes dois juntos resolvem.
--
http://s.glbimg.com/po/tt/f/original/2011/10/20/a97264_w8.jpg
Encryption works. Properly implemented strong crypto systems are one of the few things that you can rely on. Unfortunately, endpoint security is so terrifically weak that NSA can frequently find ways around it. — Edward Snowden