title: Read text file (containing list of Python filenames) and kill Python job if Python file appears in text file
body: <p>I have a text file that contains names of Python files.</p>
  
  <pre><code>a.py
  b.py
  ...
  z.py
  </code></pre>
  
  <p>My remote machine may be currently running one of those files and if it is, I would like to kill that job. Is there a way to do that in one line automatically, without manually checking <code>htop</code> and looking at the current Python file being run, checking if it is part of the text file, and subsequently <code>kill pid</code>?</p>