in reply to get value from a awk system command
Yes, use Perl! =)
This language was primarily invented to get rid of sed and awk!
have a look at a2p (Awk to Perl translator) to have a start.
Cheers Rolf
( addicted to the Perl Programming Language)