How to read only certain (desired) data from more proc/[pid]/status – Ubuntu
Lets say I want to extract current State (D/R/S/T/Z) and command Name from processes with given PID. For example I have this code: pids=$(pidof firefox) #returns all PID-s of firefox processes (random example) for v in ${pids[*]} do echo "PID:…