9 lines
107 B
Bash
Executable File

#!/usr/bin/env sh
function path_lines {
var="${1:-PATH}"
split_by_char ":" "${!var}"
}
path_lines "$@"