title: Inline if shell script
body: <p>Is it possible to execute shell script in command line like this :</p>
  
  <pre><code>counter=`ps -ef | grep -c "myApplication"`; if [ $counter -eq 1 ] then; echo "true";
  &gt;
  </code></pre>
  
  <p>Above example is not working I get only <code>&gt;</code> character not the result I'm trying to get, that is "true"</p>
  
  <p>When I execute <code>ps -ef | grep -c "myApplication</code> I get 1 output. Is it possible to create result from single line in a script ? thank you</p>