John Darby
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
You rock, my friend...thank you!
ASKER