How do I print only an IP address list of a traceroute run?

I don't want the web addresses like something-online.net and their round trip times.

How do I get a "simple" traceroute from the terminal?

link|improve this question

50% accept rate
You need to add an example of what output you're currently seeing and what you are looking for. This is too vague. – Stuart McLaughlin Sep 1 '11 at 8:21
feedback

1 Answer

up vote 6 down vote accepted

Are you looking for traceroute -n? From the man page:

   -n     Do not try to map IP addresses to  host  names  when  displaying
          them.

Edit: Comment added further requirement of removing round trip times.

To display everything except round trip times (sequence and IP address), CSV-formatted:

traceroute -n 8.8.8.8 | tail -n+2 | awk '{ print $1 "," $2 }'
link|improve this answer
yes, but how do I out it to a csv file without the round trip times in ms? – user494461 Sep 1 '11 at 8:25
Pipe the output into awk to print only the IP columns. – Gareth Sep 1 '11 at 8:31
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.