awk question about BEGIN patttern
I have a awk script with the following BEGIN pattern
BEGIN { upper = "PNBRQK"
lower = "pnbrqk"
getline < "lance1.tmp"
cor = substr($0,77,1)
}
I ca use cor inside other patterns when I run the script over lance1.tmp but I woul like to use it when I run the script over other files. How can I do that.
Thanks in advance for any help
Gaspar
|