netcat À» ÀÌ¿ëÇؼ ¼ºñ½ºÃ¼Å© ½ºÅ©¸³Æ®¸¦ ÀÛ¼ºÇÏ·Á´ÂÁß¿¡ º¸´Ï±ñ... pipe Àû¿ëÀÌ ¾ÈµÇ´Â°ÍÀÌ´Ù...
netcatÀº Ç¥ÁØ¿¡·¯Ãâ·Â°ªÀ» »ç¿ëÇϱ⠶§¹®¿¡ ¾Æ·¡¿Í °°ÀÌ »ç¿ëÇÏ¸é µÈ´Ù.
netcat is writing to stderr, so redirect stderr into stdout like this:
Code:
$ nc -z -v -w 1 127.0.0.1 1-1000 2>&1 | grep -v '?'
stderr redirection Ãß°¡¼³¸í
http://revoman.tistory.com/entry/stderr-redirection