appending path every time shell is opened code example Example: get first path in path env variable echo ${PATH%%:*}