結果 : bash redirect output to function