I have to show the PID, PPID and STATUS of the procceses on the system, but only the ones which PID starts with numbers in the range 5-8. So i tried something like this...
ps xao pid,ppid,s | grep ' 5' But then I don’t know how to do it for the range, I can make it work for one number, but not for all of them.