Advertisement
metalx1000

JSON Parse running processes with ps aux jq

Jun 10th, 2023
2,053
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.07 KB | None | 0 0
  1. ps aux | jc -p --ps|jq -r '.[]|select(.command | contains("adb")).pid'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement