how to add a new path unix code example Example: get first path in path env variable echo ${PATH%%:*}