bash functions

Signed-off-by: Vlad <vg@vladgh.com>