Shell script utilities