Hello,
I'm trying to redirect the error output of the echo command. The echo command should redirect output to a file, but not print any errors to stdout in case the file is read-only or any other error occurs.
$ echo text > xxx 2> /dev/null
$ chmod 000 xxx
$ echo text > xxx 2> /dev/null
-bash: xxx: Permission denied
Any ideas?
Thanks!