linux-tutorial/codes/shell/输入和输出/临时重定向.sh

8 lines
139 B
Bash

#!/usr/bin/env bash
# testing STDERR messages
echo "This is an error " >&2
echo "This is another error"
echo "This is also an error" >&2