&lt;?xml version="1.0" encoding="utf-8"?>
        <sphinx:docset>
            <sphinx:schema>
              <sphinx:field name="title"/>
              <sphinx:attr name="title" type="string"/>
              <sphinx:attr name="link" type="string"/>
              <sphinx:field name="content"/>
              <sphinx:attr name="content" type="string"/>
              <sphinx:attr name="pubDate" type="timestamp"/>
              
            </sphinx:schema>
            
            <sphinx:document id="1080 ">
              <title>&lt;![CDATA[Verify all the paths in the PATH directory]]></title>
              <link>&lt;![CDATA[/2010/06/08/verify-paths-path-directory/]]></link>
              <pubDate>1275988415</pubDate>
              <content>&lt;![CDATA[ Here is the command to test that all the directories in your path actually exist.
(&amp;lt;a class=&amp;quot;zem_slink freebase/en/internal_field_separator&amp;quot; title=&amp;quot;Internal field separator&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Internal_field_separator&amp;quot;&amp;gt;IFS=:;for p in $PATH; do test -d $p || echo $p; done)
And the explanation :
Set the IFS to &amp;amp;#8221;:&amp;amp;#8221;
now we loop through the PATH variable
and test all the directories with &amp;amp;#8221;test -d&amp;amp;#8221;
Here is another version without IFS:
for i in ${PATH//:/ };do test -d $i || echo $i;done
and next one without the test command:
for i in ${PATH//:/ };do [ -d $i ] || echo $i;done
Related articles by Zemanta Modifying the bashrc or bash startup files. (amit-agarwal.co.in) Finding an Absolute Path (zachgraeve.com) Resolving PHP Version Conflicts while Developing for Azure (nofluffjuststuff.com) Configuration of Redmine on Ubuntu (teabreak.pk) ]]></content>
             </sphinx:document>
            
          
        </sphinx:docset>
