> >This is a pretty good article. I'm currently working an a set of >scripts to set IPCHAINS up for the security concious home user. Right >now I just need to develop a wrapper for ifconfig so that I can just >return the IP address. > You could use this: ifconfig eth0|sed -n 's/^ *inet addr:([0-9.]*) .*/1/p'