title: How to search a particular character in a string in KornShell scripting?
body: <p>My KornShell (ksh) script receives command line arguments as input.
  My task is to check if those arguments contains <strong>abc</strong> in it and print only those arguments which contain <strong>abc</strong> in it.
  For Example:- </p>
  
  <pre><code>./tree.sh rabc try qwerty
  </code></pre>
  
  <p>Output should be ::</p>
  
  <pre><code>rabc
  </code></pre>
  
  <p>This is what I have tried:</p>
  
  <pre><code>var=$*
  z=grep "abc" var
  echo $z
  </code></pre>
  
  <p>Any insight regarding this?</p>