Article 4ZTRP curl | grep

curl | grep

by
Linuxbruh
from LinuxQuestions.org on (#4ZTRP)
Hello,

trying to run through a bunch of curl commands as such:

curl -I --silent 192.168.1.5 | grep server
curl -I --silent 192.168.1.99 | grep server

The result will look something like this:

Server: Acme Device Model 123 HTTPd
Server: Acme Device Model 456 HTTPd

That is all the information I need. How can I add the IP back to it so the result looks something like this?

192.168.1.5 Server: Acme Device Model 123 HTTPd
192.168.1.99 Server: Acme Device Model 456 HTTPdlatest?d=yIl2AUoC8zA latest?i=Ihgwh0lnT5A:0TA3ndDNFD0:F7zBnMy latest?i=Ihgwh0lnT5A:0TA3ndDNFD0:V_sGLiP latest?d=qj6IDK7rITs latest?i=Ihgwh0lnT5A:0TA3ndDNFD0:gIN9vFwIhgwh0lnT5A
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments