title: Kill processes older that one day by its name
body: <p>I have a question much related to the problem.
  Here's my code:</p>
  
  <pre><code>ps -eo pid,etime,cmd|grep ${1}|grep -v grep|awk '{if ($2&gt;="23:59:59") print $1}'|xargs kill -9
  </code></pre>
  
  <p>I am trying to kill all processes with specific name which etime is more than a day. It worked well that way until i was told that the script cannot kill processes that represent date in a format like: 1-23:00:00.</p>
  
  <p>Changing variable $2 in awk procedure to 1-00:00:00 kills all processes with given name. Can you give me a hint how to format etime properly?</p>