Bash Get First Part Of Path