Closed FriendlyNeighborhoodShane closed 4 years ago
func() { file="$1"; shift 1; { { "@" 2>&3 | cat; } 3>&1 1>&2 | tee "$file"; } 3>&2 2>&1 1>&3; }
Shorten this for me
func() { file="$1"; shift 1; { "$@" 3>&1 1>&2 2>&3 | tee "$file"; } 3>&1 1>&2 2>&3; }
Shorten this for me