getting IP address of router

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Wed Feb 9 19:02:13 UTC 2005


On Wed, Feb 09, 2005 at 12:43:10PM -0500, jim ruxton wrote:
> > dog http://www.myip.dk|tail -1|sed -e 's%.*IP: \(.*\)</title>.*%\1%'
> Your kidding right? Is there really a dog command? I don't have one.

Would I be kidding about such a thing?

lennartsorensen at debdev1:~$ apt-cache show dog
Package: dog
Priority: optional
Section: text
Installed-Size: 76
Maintainer: Norbert Tretkowski <nobse-8fiUuRrzOP0dnm+yROfE0A at public.gmane.org>
Architecture: i386
Version: 1.7-4
Depends: libc6 (>= 2.3.2-1)
Filename: pool/main/d/dog/dog_1.7-4_i386.deb
Size: 14972
MD5sum: c3b6494176b2b290e4e92f00db75d912
Description: Enhanced replacement for cat
 dog writes the contents of each given file, URL or standard
 input to standard output. It currently supports file, http
 and raw URLs. It is designed as a compatible, but enhanced
 replacement for cat.

Sound useful?

Of course sometimes lynx -dump is handy for eliminating the html.  I
suppose wget might even have an option for dumping files to stdout, but
dog is much smaller it seems.  curl isn't bad either.

Lennart Sorensen
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list