Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6905867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:14:11+00:00 2026-05-27T08:14:11+00:00

I am trying to process IP addresses from traceroute ,which writes to a file

  • 0

I am trying to process IP addresses from traceroute,which writes to a file called td on disk,after which I do a

grep -o '[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]*[0-9]*[0-9]' td | uniq

to get the list of unique IP addresses. Next i can get the geolocation data for the address by

lynx -dump http://api.hostip.info/get_html.php?ip=8.8.8.8

But now how do I feed the multiple outputs of the first into the second without needing to write to another file on the disk.

As an aside I was wondering if i could remove the file td completely and pipe traceroute output directly to grep somehow.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T08:14:12+00:00Added an answer on May 27, 2026 at 8:14 am

    Can you use a shell for loop?

    for i in $(cat td)
    do
      lynx -dump http:/...${i}
    done
    

    You can replace $(cat td) with $(traceroute <options> | grep -o '[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]*[0-9]*[0-9]' | uniq) to avoid the intermediate file td.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to process content from a list of links using open-uri in ruby
I am trying to process an uploaded file in a Perl program, using CGI::Application.
I'm trying to process data obtained from a run of diff to an instance
I am trying to process 114,000 rows in a dataset (populated from an oracle
I am trying to process the response from paypal on my page. I found
I am trying to get a list of all IP's on a LAN network.
Malloc allocates memory from one of the virtual memory regions of the process called
I'm trying to execute an HTTP GET from my website to another website that
I am trying to get output from a subprocess and then give commands to
I am trying to read memory from an process in C#. I found out

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.