IP Adresse ermitteln

Bourne-again shell
Antworten
localhorst
Beiträge: 571
Registriert: 17.12.2012, 20:19

IP Adresse ermitteln

Beitrag von localhorst »

Code: Alles auswählen

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