#!/bin/csh -f # local_ip_address # ----------------------------------------------------------------------------- # Shell script to echo the local IP address pulled from /etc/hosts # ----------------------------------------------------------------------------- # Assumptions: # - /etc/hosts has exactly one line containing the output of : hostname -f # and that line starts with the IP address followed by a space. # Effects: # Notes: # Implementation Notes: # Portability Issues: # Revision History: # $Log$ # ----------------------------------------------------------------------------- grep `hostname -f` /etc/hosts | awk '{print $1}'