title: regex help on unix df
body: <p>I need some help tweaking my code to look for another attribute in this unix <code>df</code> output:</p>
  
  <p>Ex.</p>
  
  <pre><code>Filesystem     Size    Used   Avail Capacity  Mounted on
  /dev/ad4s1e     61G     46G    9.7G    83%    /home
  </code></pre>
  
  <p>So far I can extract capacity, but now I want to add Avail.</p>
  
  <p>Here is my perl line that grabs capacity. How do I get "Avail"?? Thanks!</p>
  
  <pre><code>my @df = qx (df -k /tmp);
  my $cap;
  foreach my $df (@df)
          {
           ($cap) =($df =~ m!(\d+)\%!);
          };
  
  print "$cap\n";
  </code></pre>