ppp domain name function ?

Stelios Bounanos sb at dial.pipex.com
Fri Jun 19 22:27:34 EEST 1998


"I.Ioannou" <roryt at hol.gr> wrote:
> On 18-Jun-98 Nicholas Dandalis wrote:
> > 
> > ifconfig ppp0 | grep addr: | awk -F : '{print $2}' | awk '{print $1}' |
> > nslookup | grep Name: | awk -F : '{print $2}' | awk '{print $1}'
> 
> Gou-gou-gouaaaou !!! Shell power (poli awk re paidi mou, mallon tha koitakso na
> kanw to idio se Perl, ektos an to grapso se C)
> 

Pragmati, poly awk :)

$ ls -lL `which awk`
-rwxr-xr-x   1 root     root       142432 Sep  2  1996 /bin/awk

$ ls -lL `which cut`
-rwxr-xr-x   1 root     root        18068 Dec 16  1996 /usr/bin/cut


Opote, an 8eloume swnei kai kala na kanoume th douleia me shell script,
prospa8oume toulaxisto na xrhsimopoioume to cut opou einai dynato,
px. `` cut -d: -f2 '' anti gia `` awk -F : '{print $2}' '' klp.


Filika,
sb.

--
 "Men of lofty genius are most active
        when they are doing the least work".
                           -- Leonardo da Vinci


--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at argos.hol.gr
Ta archives tis listas einai sto http://www.argos.hol.gr/lists :
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list