useful shell(bash) functions