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 HTTPd


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 HTTPd