<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/bash/tags/path</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Mon, 20 May 2013 08:09:18 GMT</pubDate>
<item>
<title>(Bash) gem path - greeneggs614</title>
<link>http://snipplr.com/view/53573/gem-path/</link>
<description><![CDATA[ <p>Prints the path to your gem directories.</p> ]]></description>
<pubDate>Sat, 14 May 2011 06:29:40 GMT</pubDate>
<guid>http://snipplr.com/view/53573/gem-path/</guid>
</item>
<item>
<title>(Bash) base - cruelfate</title>
<link>http://snipplr.com/view/46700/base/</link>
<description><![CDATA[ <p>Determine absolute minimal absolute path of parent directory containing this script.  (remove any  ".." path segments).    Works with rudimentary Bourne shell as well as bash.</p> ]]></description>
<pubDate>Fri, 07 Jan 2011 03:21:15 GMT</pubDate>
<guid>http://snipplr.com/view/46700/base/</guid>
</item>
<item>
<title>(Bash) Relative to Absolute Path Conversion - iloveitaly</title>
<link>http://snipplr.com/view/34401/relative-to-absolute-path-conversion/</link>
<description><![CDATA[ <p>the os x version of realpath works differently than the linux version; the following allows you to attain the same functionality in a shell on os x as `readlink -f $0` on a standard linux dist.</p> ]]></description>
<pubDate>Thu, 13 May 2010 09:15:59 GMT</pubDate>
<guid>http://snipplr.com/view/34401/relative-to-absolute-path-conversion/</guid>
</item>
<item>
<title>(Bash) howto create/change SVN externals (link an SVN repo to another path in the repo, or to another project entirely) - noah</title>
<link>http://snipplr.com/view/30093/howto-createchange-svn-externals-link-an-svn-repo-to-another-path-in-the-repo-or-to-another-project-entirely/</link>
<description><![CDATA[ <p>Sometimes it is convenient to "pull in" code from an external source.  This is especially useful if you have dependencies that you don't manage yourself.</p> ]]></description>
<pubDate>Sun, 21 Mar 2010 13:05:06 GMT</pubDate>
<guid>http://snipplr.com/view/30093/howto-createchange-svn-externals-link-an-svn-repo-to-another-path-in-the-repo-or-to-another-project-entirely/</guid>
</item>
<item>
<title>(Bash) Find Your Ruby Gems Path - alvarezrilla</title>
<link>http://snipplr.com/view/29772/find-your-ruby-gems-path/</link>
<description><![CDATA[ <p>Because different systems put it in different places.</p> ]]></description>
<pubDate>Mon, 15 Mar 2010 07:14:18 GMT</pubDate>
<guid>http://snipplr.com/view/29772/find-your-ruby-gems-path/</guid>
</item>
<item>
<title>(Bash) Creating links in different directories (Linux/UNIX) - deepsoul</title>
<link>http://snipplr.com/view/18350/creating-links-in-different-directories-linuxunix/</link>
<description><![CDATA[ <p>When using `ln` to create a link in a different directory, the semantics of creating hard and symbolic links differ.  That is because a hard link contains a direct reference to its target's data, while a symbolic link is just a string containing a (possibly relative) path.  You can get around this by using absoute paths, but then moving a subtree will break the symlink.

Just to recap, the other main differences between hard and symbolic links: Symbolic links can be left dangling when their target is removed; hard links cannot.  Symbolic links can point to files on other partitions or disks, while hard links cannot.</p> ]]></description>
<pubDate>Sat, 15 Aug 2009 16:35:51 GMT</pubDate>
<guid>http://snipplr.com/view/18350/creating-links-in-different-directories-linuxunix/</guid>
</item>
<item>
<title>(Bash) Canonical absolute path - deepsoul</title>
<link>http://snipplr.com/view/18026/canonical-absolute-path/</link>
<description><![CDATA[ <p>The following shell function returns the canonicalised abolute path of a file.  It resolves symbolic links, /./ and /../ as applicable.  This was adapted from various sources.  Related snippets on snipplr are [Find absolute path of Bash script](http://snipplr.com/view/16715/find-absolute-path-of-bash-script/) and [Get current script name and absolute paths](http://snipplr.com/view/9508/get-current-script-name-and-absolute-paths/).</p> ]]></description>
<pubDate>Fri, 07 Aug 2009 12:05:00 GMT</pubDate>
<guid>http://snipplr.com/view/18026/canonical-absolute-path/</guid>
</item>
<item>
<title>(Bash) Find absolute path of Bash script - loungerdork</title>
<link>http://snipplr.com/view/16715/find-absolute-path-of-bash-script/</link>
<description><![CDATA[ <p>Gets the absolute path of the script itself even when it's executing, not just a simple "pwd".</p> ]]></description>
<pubDate>Tue, 07 Jul 2009 01:43:08 GMT</pubDate>
<guid>http://snipplr.com/view/16715/find-absolute-path-of-bash-script/</guid>
</item>
<item>
<title>(Bash) Set Linux environment variables JAVA_HOME &amp;amp; PATH globally using /etc/profile - cbrant</title>
<link>http://snipplr.com/view/12909/set-linux-environment-variables-javahome--path-globally-using-etcprofile/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 08 Mar 2009 08:06:49 GMT</pubDate>
<guid>http://snipplr.com/view/12909/set-linux-environment-variables-javahome--path-globally-using-etcprofile/</guid>
</item>
<item>
<title>(Bash) Filtering the Find command - noah</title>
<link>http://snipplr.com/view/12070/filtering-the-find-command/</link>
<description><![CDATA[ <p>How to filter files and directories with the find command.

The command below finds files that end in "sass," but not the file named "constants.sass," and not the directory "landing_page," nor any of its contents.</p> ]]></description>
<pubDate>Tue, 10 Feb 2009 10:10:21 GMT</pubDate>
<guid>http://snipplr.com/view/12070/filtering-the-find-command/</guid>
</item>
<item>
<title>(Bash) Determine if a path is in an nfs mount - kergoth</title>
<link>http://snipplr.com/view/6248/determine-if-a-path-is-in-an-nfs-mount/</link>
<description><![CDATA[ <p>This is useful if you have some optional functionality being done which is quite slow on nfs.  For example, I have a script that adds scm (svn/git/etc) info to my prompt, but I wouldn't want that when I'm in a repository on an nfs mount.</p> ]]></description>
<pubDate>Thu, 15 May 2008 15:22:56 GMT</pubDate>
<guid>http://snipplr.com/view/6248/determine-if-a-path-is-in-an-nfs-mount/</guid>
</item>
<item>
<title>(Bash) Add paths to Ruby 'require' - cczona</title>
<link>http://snipplr.com/view/6192/add-paths-to-ruby-require/</link>
<description><![CDATA[ <p>Suppose you created a script chart.rb in /home/foo/ruby/mylib direcory. Now, you want to use this in the app.rb located in /home/foo/ruby/scripts. In ~/.bash_profile:</p> ]]></description>
<pubDate>Mon, 12 May 2008 17:52:58 GMT</pubDate>
<guid>http://snipplr.com/view/6192/add-paths-to-ruby-require/</guid>
</item>
<item>
<title>(Bash) Create a directory recursively - noah</title>
<link>http://snipplr.com/view/3979/create-a-directory-recursively/</link>
<description><![CDATA[ <p>Given the legal path of a nonexistent directory, create that path and directory.</p> ]]></description>
<pubDate>Tue, 23 Oct 2007 02:01:14 GMT</pubDate>
<guid>http://snipplr.com/view/3979/create-a-directory-recursively/</guid>
</item>
</channel>
</rss>