title: How to parse two specific information from the result of ls -l as arguments by using the scanf function?
body: <pre><code>someuser:~/repo/a1/part1&gt; /bin/ls -l
  total 12
  -rw------- 1 someuser student  489 Jan 28 07:30 file.c
  -rw------- 1 someuser student  462 Jan 16 12:44 Make
  drwx------ 2 someuser student 4096 Jan 28 03:59 test_inputs
  </code></pre>
  
  <p>Take the second line in the result for example.</p>
  
  <p><code>-rw------- 1 someuser student  489 Jan 28 07:30 file.c</code></p>
  
  <p>I want to parse the permission<code>-rw-------</code> and file size<code>489</code> as arguments in another function via the <code>scanf</code> function. How can I implement it?</p>