bash path code example
Example 1: linux add to path
export PATH=$PATH:/place/with/the/file
Example 2: get first path in path env variable
echo ${PATH%%:*}
Example 3: bash script path
#!/bin/bash
Example 4: bash how to define a path
path_to_file="/path/to/file"
echo "$path_to_file"