#The real point of this is to document the syntax for redirecting both # stout and stderr to the same place. I can't seem to remember it. if ifconfig eth0 >/dev/null 2>&1; then echo Interface eth0 is up; else echo Interface eth0 is not up.; fi