title: using unix commands like grep and sed for the perl array
body: <p>How do I grep for certain patterns in a perl array and use sed command and save output as another array,like below one</p>
  
  <pre><code>my @modifiedfiles=`echo @files | grep  -E '(DataFiles|Pfgas|Startups)' | sed -e 's/.*something//g; s/#.*$//g;'` 
  </code></pre>