Piping both stdout and stderr in bash?
(Note that &>>file appends to a file while &> would redirect and overwrite a previously existing file.) To combine stdout and stderr you would redirect the latter to the former using 1>&2. This redirects stdout (file descriptor 1) to stderr (file descriptor 2), e.g.: $ { echo “stdout”; echo “stderr” 1>&2; } | grep -v … Read more