BASH functions, files and scripts