Skip to main content

Thread: Why doesn't this command work?


code:
ping -c 20 www.google.co.uk
works fine

code:
ping -c 20 www.google.co.uk | grep "36.0"
works fine

code:
ping -c 20 www.google.co.uk > ping.txt
works fine

but

code:
ping -c 20 www.google.co.uk | grep "36.0" > ping.txt
doesn't work (well not me!). seen lots of examples offered up. suggestions?

quote posted jose catre-vandis view post
code:
ping -c 20 www.google.co.uk
works fine

code:
ping -c 20 www.google.co.uk | grep "36.0"
works fine

code:
ping -c 20 www.google.co.uk > ping.txt
works fine

but

code:
ping -c 20 www.google.co.uk | grep "36.0" > ping.txt
doesn't work (well not me!). seen lots of examples offered up. suggestions?
what mean "doesn't work"? trying catch "36.0"? part of address? response time?


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Why doesn't this command work?


Ubuntu

Comments