Seite 1 von 1

IP Adresse ermitteln

Verfasst: 13.02.2013, 21:34
von localhorst

Code: Alles auswählen

#!/bin/bash
IP=$(sudo /sbin/ifconfig eth0 | grep inet | cut -d ":" -f 2 | cut -d " " -f 1);