Hi,
I have a awk program which changes the value of a shell variable and I don't know how to get this values in the shell.
I know how to do this whitn a file but I 'd prefer whith a variable(cleaner).
Exemple:
"
varshell='OK'
awk NR==1
'{
if NF==2...
varshell='NOK...
.
.
} file
.
.
print $varshell
"
Result OK or NOK
I have a awk program which changes the value of a shell variable and I don't know how to get this values in the shell.
I know how to do this whitn a file but I 'd prefer whith a variable(cleaner).
Exemple:
"
varshell='OK'
awk NR==1
'{
if NF==2...
varshell='NOK...
.
.
} file
.
.
print $varshell
"
Result OK or NOK