6 May
2002
6 May
'02
20:54
Hallo, Bitte lass das TOFU (Text Oben, Fullquote Unten) sein. On Mon, 06 May 2002, Marc Schroetel wrote:
ich suche mir in der ausgabe von ifconfig die ip des devices das ich angebe. 'erstmal IFS=" :"' dann '(ifconfig ppp0 | grep "inet addr")' gibt mir schonmal nur die zeile aus die ich brauche dann noch das ergebnis an '(read A B C; echo $C)' pipen und es kommt die ip raus
==== ~/dynip.sh ==== #!/bin/sh /sbin/ifconfig ppp0 | sed -n 's/.*addr:\([0-9\.]*\).*/\1/p'; ==== -dnh -- PC's are designed by a committee of people who are in different companies in different countries and who never talk to each other. -- Derick Siddoway And nobody speaks the same language and they hate each other... -- Chris Adams