title: Handling file permissions in UNIX using awk
body: <p>I want to know which permission is given to a file using a shell script. So i used the below code to test for a file. But it shows nothing in output. I just wanted to know where i have made the mistake. Please help me.
  The file "1.py" has all read write and execute files enabled.</p>
  
  <pre><code> ls -l 1.py | awk ' {if($1 -eq "-rwxrwxrwx")print 'True'; }'
  </code></pre>