I got script
.....
lineno=0
syscommnand | awk 'NR>$lineno && NR<$lineno-2 {print $2, $6)'
let lineno=$lineno+10
...
but the script doesn't work b'cause the $lineno in "NR", how can I pass the variable to NR? or can someone give me better code b'cause I am new to awk. thanx in very advance.
.....
lineno=0
syscommnand | awk 'NR>$lineno && NR<$lineno-2 {print $2, $6)'
let lineno=$lineno+10
...
but the script doesn't work b'cause the $lineno in "NR", how can I pass the variable to NR? or can someone give me better code b'cause I am new to awk. thanx in very advance.