Is there a way to parse console notices from a command as output?
IE. to grep the output of ipcalc for bad, bad prints, but as you can see from wc -l, its not actually returning anything:
# ipcalc -c 192.168.0.h1 |grep bad |wc -l
ipcalc: bad IPv4 address: 192.168.0.h1