title: How to I get the first directory from the PATH environment variable in bash?
body: <p>Assuming that your PATH environment variable contains a list of paths, separated by <code>:</code>, how do I get only the first folder from this list into another variable?</p>