We may not know how many processes actually died as a result of a pkill command, but is there a way to echo how many processes matched?
pkill -f "bin/ql_node_server"
is there a switch to pkill that will echo how many processes matched?
on MacOS, if I use the -c option with pkill, I get:
pkill: illegal option -- c
usage: pkill [-signal] [-ILfilnovx] [-F pidfile] [-G gid]
[-P ppid] [-U uid] [-g pgrp]
[-t tty] [-u euid] pattern ...
You can use -c flag.
From man pkill: