title: get the pid of specified process name from pstree by using shell script
body: <p>I am using pstree to get a set of process and the result will be like </p>
  
  <p>processA(123)---processB(124)---processC(125)---processTarget(126)---processD(127)</p>
  
  <p>I would like to use the keyword "processTarget" to get the pid, that is 126.</p>
  
  <p>The reason why i chose the pstree is that I will send SIGTSTP signal and SIGCONT to this set of process.</p>
  
  <p>How could I do that? Is there any easy to do it?</p>
  
  <p>Note:The processTarget(126) is not in the fixed position, therefore I could not use awk to get the PID. </p>