cat folder/*.pid | xargs kill
should do it?
If you need to specify a signal, for example KILL , then
cat folder/*.pid | xargs kill -KILL
If your pidfiles does not have line feeds, this might work better:
( cd folder && for pidfile in *.pid; do echo kill -QUIT `cat $pidfile`; done )
source share