Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to add to the network section of conky a list of all hosts and ips for my network.

However I do not know how to format the output in a way I like.

I want

  • Live Hosts However this is on the bottom line of nmap's output)
  • host (ip)
  • host (ip)
  • and on and on...

I think there should be a max of 7 on my network. How can I do this? The output of nmap -sP 192.168.1.0/24 looks nothing like what I want though it does have all the parts, just in the wrong order.

share|improve this question
    
Can someone explain awk and/or grep to the OP? –  hexafraction Sep 21 '12 at 19:29
    
@ObsessiveFOSS You're someone! :) –  SirCharlo Sep 21 '12 at 19:40
    
@WolfLarson Please edit your question to add the current output, and the desired output. We'll be able to help more then. –  SirCharlo Sep 21 '12 at 19:41
    
@SirCharlo What do you mean? –  hexafraction Sep 21 '12 at 20:32

1 Answer 1

If you want to work with the text output of namp, then yeah, I would reccomend looking into using grep and/or awk to shape the output. If you just want something pretty to look at, install and use zenmap.

sudo apt-get install zenmap

Then run:

sudo zenmap

It's a very nice graphical overlay for nmap and you can manipulate and navigate the map results rather nicely.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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