Hello,
I try to make a script to count the points jcpu was obtained from the command w.
For that I have this code
This is the bash code
And utils.awk:Code:/ bin / bash w | awk-f utils.awk
I want to use name [i], and jcpu [i] outside. Awk, but I can not. I must get out of. Awk, perhaps with a print, but despite several attempts, I have not managed to find a solution. If you guys have a solution for this then please let me know I am the interested one here. Thanks in advance.Code:N> 2 { i = N - 1 name[i] = $1 jcpu[i] = $6 }
Bookmarks