1

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

jcubic
  • 9,932

0 Answers0