You can use this.

#!/bin/bash

arr=(`df -h | grep -vE "^Filesystem|shm|boot" |  awk '{ print +$5 }'`)
for v in "${arr[@]}"
do
    echo $v
done


(Note only works with bash, not /bin/sh)

Converting the output of df -h into an array in Bash
I've tried to migrate an external application into Sharepoint using Application Pages. The external code is included as Class libraries that's installed into GAC when deploying. My application generates XML and transforms it using Xslt into XHTML so I tought I could use most of my code and tweak the xslt / javascript into generating XHTML that works in Sharepoint.

But I get a problem loading the Xslt file and I have no clue why. In my desperation I've given Everyone Full Control on the ASP.Net temp files directory at C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files

The Errors I'm getting is:


  System.IO.FileLoadException: Could not load file or assembly
  '0m_xtgin, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or
  one of its dependencies. Failed to grant permission to execute.
  (Exception from HRESULT: 0x80131418) File name: '0m_xtgin,
  Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' --->
  System.Security.Policy.PolicyException: Execution permission cannot be
  acquired.


The code where the problem occurs:

XslTransform Transformer = new XslTransform();
Transformer.Load(FolderName + FileName, new StyleResolver());


Any ideas what could be wrong or any ideas of what to do to work around this? What account could it be that's executing? Is it the Sharepoint App pool account?
