how to assign output from bash command ps to array ?
Hi,
I have a command:
ps aux|grep "$nameoftheprocess" |grep grep --invert-match|awk '{printf $2; }
as an example: one result returns 3 PIDs like following:
769777057724 # which is 7697 7705 7724
I would like to assign those values into array. How to do it ?
Thank you,
Kind Regards,
Martin
|