title: Get the CORE ID of a running bash script
body: <p>I'm trying to write a script which could output the id of the core that executes the script.</p>
  
  <p>I have already found a system call <a href="http://www.kernel.org/doc/man-pages/online/pages/man2/getcpu.2.html" rel="nofollow"><strong>getCPU</strong></a> which can achieve my goal.
  However, I don't know how to call this system call and get it work in a bash script.</p>
  
  <p>Any help would be grateful!</p>
  
  <p>Dennis</p>