Skip to content

Instantly share code, notes, and snippets.

@shellscriptx
Last active February 21, 2019 12:06
Show Gist options
  • Save shellscriptx/b0c76c1d45af3c726da030e3e84227b0 to your computer and use it in GitHub Desktop.
Save shellscriptx/b0c76c1d45af3c726da030e3e84227b0 to your computer and use it in GitHub Desktop.

Dúvida: https://pt.stackoverflow.com/questions/355510

1. grep

grep -oP '(?<=current node: )[0-9]+' $TMPARQ

Arquivo:

OrclLog,1: Number of rows inserted on the current node: 66.
OrclLog,1: Number of rows inserted on the current node: 123.
OrclLog,1: Number of rows inserted on the current node: 4234.
OrclLog,1: Number of rows inserted on the current node: 1332.
OrclLog,1: Number of rows inserted on the current node: 124.
OrclLog,1: Number of rows inserted on the current node: 991923.

Saída:

66
123
4234
1332
124
991923

Comunidades

Gostaria de contribuir com o projeto? clique aqui

padrim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment