Bash シェルスクリプトの中から自分のリダイレクト先を指定する


#!/bin/bash

exec &>OUT
exec 1>OUT
exec 2>OUT

###
# some commands
#
# ...
###