Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Grep for IP Addresses
Name: whitehat5437 Date: January 8, 2003 at 05:49:14 Pacific OS: Linux CPU/Ram: PIII/512
Comment:
I need to search a HDD and locate all the IP addresses. Normally I just look for on IP, which is this command
Summary: Your dhcpcd stores the information it retrieves in the directory "/etc/dhcpc". This directory contains a file usually called something like "dhcpcd-eth0.info". That file should contain more informatio...
Summary: GOT IT! /sbin/ifconfig | grep addr: | awk '{print $2}' | sed 's/addr\://' Happy scripting! Steve Barkey sbarkey@alexin.ca >Heres a tricky one! >How do you get just the current IP address (DHCP Clie...