Avatar of John Darby
John Darby
Flag for United States of America asked on

using findstr to output

The other day I used a command that worked fine, but its output required me to do some hands-on work in Excel to get exactly the output I wanted to copy/paste into an email.

Here was the command (sample IP)...

ping -a 10.10.10.10 | findstr /i "Pinging" >> .\hostnames.txt

I am looking for a way to grep or findstr only the hostname. Do you know if I can do this simply using the old CMD tools?

Thanks!
JohnD
Microsoft Legacy OSProgramming Languages-OtherProgramming

Avatar of undefined
Last Comment
John Darby

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
fhmc

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
fhmc

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
John Darby

ASKER
The clipboard...never knew how to do that. Thanks bro!
John Darby

ASKER
You rock, my friend...thank you!
Your help has saved me hundreds of hours of internet surfing.
fblack61