Just trying to redirect stout to stderr. But I'm a little confused about these two commands.
echo test 2>/dev/null 1>&2
echo test 1>&2 2>/dev/null
I don't understand why the second one doesn't work properly.
Just trying to redirect stout to stderr. But I'm a little confused about these two commands.
echo test 2>/dev/null 1>&2
echo test 1>&2 2>/dev/null
I don't understand why the second one doesn't work properly.