The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-22-2007
eb222 eb222 is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 6
need a quick basic shell script help

im trying to run the below if command

ifconfig -a |grep 10.100.120.21

gives me below output
inet addr:10.100.120.21 Bcast:10.100.120.255 Mask:255.255.255.0

i just want a basic shell which says if above exists then continue

how would i do this?