I am able to to show the PID (2nd column) with the below command: ps -ef | grep runner | awk {'print$2'}2432634663486350635274077410741610824173051749429658But instead I want to show pwdx <PID> and also the COMMAND (8th column). How can I do this?
How do use awk along with a command to show the process ID with the 'ps' command
awk;ps