Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: | find /v  (Read 4552 times)

0 Members and 1 Guest are viewing this topic.

Lemonilla

    Topic Starter


    Apprentice

  • "Too sweet"
  • Thanked: 70
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 7
| find /v
« on: July 02, 2012, 12:50:03 PM »
Is there a way to remove extra (blank) lines? So like
Code: [Select]
ping www.yahoo.com |find /v "Pinging" | find /v "Reply" | find /v "Ping" | find /v "Packets" | find /v "Approximate"but without all the extra blank lines, so I can write it to a file and retreve it later?

EDIT:
still haven't found the delete button yet, but this was solved with:
Code: [Select]
ping www.yahoo.com |find "Min"
« Last Edit: July 02, 2012, 01:00:49 PM by Lemonilla »
Quote from: patio
God Bless the DOS Helpers...
Quote
If it compiles, send the files.

Squashman



    Specialist
  • Thanked: 134
  • Experience: Experienced
  • OS: Other
Re: | find /v
« Reply #1 on: July 02, 2012, 01:33:04 PM »
You sure over thought that one.   ;D

Salmon Trout

  • Guest
Re: | find /v
« Reply #2 on: July 03, 2012, 01:08:52 PM »
I quite like all those pipes...

Helpmeh



    Guru

  • Roar.
  • Thanked: 123
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 8
Re: | find /v
« Reply #3 on: July 04, 2012, 10:48:41 AM »
For loops automatically skip over any blank lines, so try something like this:
Code: [Select]
for /f "delims=" %%a in ('ping www.computerhope.com') do echo %%a >> output.txt
Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.

Squashman



    Specialist
  • Thanked: 134
  • Experience: Experienced
  • OS: Other
Re: | find /v
« Reply #4 on: July 04, 2012, 02:58:59 PM »
For loops automatically skip over any blank lines, so try something like this:
Code: [Select]
for /f "delims=" %%a in ('ping www.computerhope.com') do echo %%a >> output.txt
That really has nothing to do with his problem.  He is just looking for the output of one line from the PING command.
Code: [Select]
Minimum = 66ms, Maximum = 161ms, Average = 126ms