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.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community