Hallo, Am Sam, 23 Mai 2009, ternaryd schrieb: > /sbin/ifconfig ppp0 | grep inet | sed -re 's/[ ]+/\t/g' \ > | cut -f3 | sed -e 's/addr://g' Aua. Useless use of grep, of cut, of sed. Fehlt nur noch ein 'cat' irgendwo (tempfile?)... ==== #!/bin/sh IF=eth0 # oder ppp0, was auch immer LANG="C" /sbin/ifconfig "$IF" | \ sed -n '/addr:/s/.*addr:\([0-9\.]*\).*/\1/p'; ==== HTH, -dnh -- Who stole my tagline?