Removing lines having special characters using awk command
<p>I have a text file with a sentences, words on each line. E.g.  </p>

<pre><code>Hello 
Hi 
How are you?
%
$
9
</code></pre>

<p>I need to remove the lines from the above file which contains non text characters. My output should be as follows: <br/></p>

<pre><code>Hello 
Hi 
</code></pre>

<p>I am trying out this using awk command as follows:</p>

<pre><code>awk '!/[%$0-9?]/' filename
</code></pre>

<p>I am able to do this for the above file because I know the special characters in above sentence. But, my file has a list of special characters that is difficult to write in awk.</p>

<p>I tried out the below commands but it keeps the lines that have both alphabets and special characters.</p>

<pre><code>awk '/[a-zA-Z]/' filename
</code></pre>

<p>Hence, could anyone please suggest me how to write awk command that will keep only those lines that don't have any special characters OR how to keep only those lines that have alphabets only.</p>

<p>Thanks</p>