The UNIX and Linux Forums  

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 -->
  #3 (permalink)  
Old 08-26-2008
snake450 snake450 is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 5
Hey ,
my logic was to get as many file sin as possible so here is the half part of the code

Please correct me if i am wrong.

grep '^[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}$' followed by respective file names which lies under /var/lib/output/ for me atleast.

Now i want to write the code for reverse dns here .....am i on the right path?

I just wanted to add that i know the commands for reverse dns is Nslookup or dig -x followed by the ip address but the thing how do i make to take the ip address from various files and format it.

Last edited by snake450; 08-26-2008 at 09:28 PM..