I know the argument "-C" which can filter on the command.
But in my scenario I may have some processes with the same process name and different args.
How to filter on these args?
(I know I could pipe to grep later, but that is not 100% accurate. I.e.: when an arg may contain another arg, such as if I want to filter by the arg "bar" in these list:
+---------+---------+-----------+
| Process | Command | Arguments |
+---------+---------+-----------+
| 23 | foo | bar |
| 48 | foo | barbaz |
+---------+---------+-----------+
PS: I'm guessing most answers are going to recommend me to use "pgrep" instead of "ps", but I would like to avoid this if possible.