bash parsing is not too sophisticated