bash test.sh
これのPIDを調べる方法を教えてください
pgrep test
pgrep "bash test.sh"
ってやっても引っかかりません
pgrep bashってやるとbash test.shのPID以外のも引っかかるので困りました