I have the following statement:
UserParameter=myitem,ps auxw | awk '$5 ~ /^[0-9]*$/ { s+= $5} END {print s}'
The parameter's $5 are getting passed even though they are null.
I tried delimiting with all combinations I could think of, but nothing works.
the only way around this is to have a script but this is a real nuisance and not very pretty.
another option I had was to use nested ...`echo $`5... but that is seriously dodgy also.
Can anyone help me please???
UserParameter=myitem,ps auxw | awk '$5 ~ /^[0-9]*$/ { s+= $5} END {print s}'
The parameter's $5 are getting passed even though they are null.
I tried delimiting with all combinations I could think of, but nothing works.
the only way around this is to have a script but this is a real nuisance and not very pretty.
another option I had was to use nested ...`echo $`5... but that is seriously dodgy also.
Can anyone help me please???
Comment