Looking for option to get rid of traceroute: wrote 0 40 chars, ret=-1
message in its output.
So the output would look just like this:
1 * * *
2 * * *
Best I could achieve is these:
$ traceroute -anm 10 -w 1 0 2>/dev/null | sed 's/traceroute:.*/ /'
1
*
*
*
2
*
*
*
and
$ traceroute -anm 10 -w 1 0 2>/dev/null | sed -e 'N;s/traceroute:.*\n/ /'
1 *traceroute: wrote 0 40 chars, ret=-1
* *
2 *traceroute: wrote 0 40 chars, ret=-1
* *