Ways to find records based on their first letter awk Unix
<p>I would like to take out only persons with name starting with A using awk. How do i do it</p>

<pre><code>REGNO   NAME            DEPT            AVG             STATUS
100     Tony            ECE             30              FAIL
200     Jimmy           ECE             67              PASS
300     Sanjay          CSE             89              PASS
400     Nethra          IT              90              PASS
500     Ramesh          MECH            45              FAIL
600     Ranjani         CSE             34              FAIL
700     Aarthi          IT              56              PASS
800     Ram             MECH            98              PASS
</code></pre>

<p><br></p>

<pre><code>awk '{if($2=="A*" &amp;&amp; $3=="IT" )  print $2,$3}' output.txt
</code></pre>

<p><br></p>

<p>I used this. What is wrong?</p>