linux SHELL and PATH variable code example Example: get first path in path env variable echo ${PATH%%:*}