Hi,
I have an AWK process in a shell script. Part of the function is to determine the position of a character string on a line. For example:
awk ' {
BytePos = match($0,"a"
print BytePos
} ' string.dat
I want to access the value of the BytePos variable by the shell script code that follows the AWK process.
How can this be done?
Thank you.
gawker
I have an AWK process in a shell script. Part of the function is to determine the position of a character string on a line. For example:
awk ' {
BytePos = match($0,"a"
print BytePos
} ' string.dat
I want to access the value of the BytePos variable by the shell script code that follows the AWK process.
How can this be done?
Thank you.
gawker