I have command like this:
md5sum -c {FILENAME} 2>&1 > /dev/null || ./upload {FILENAME}
and it show error if file is missing or invalid, I need to use this in order to hide the message:
md5sum -c {FILENAME} 2>/dev/null > /dev/null
why 2>&1
don't work? It seems it's valid
2>&1
after>/dev/null
– enzotib Apr 29 '17 at 15:43