Search Results

Search: Posts Made By: scolazz
12,070
Posted By scolazz
well, perl to the rescue: #!/usr/bin/perl...
well, perl to the rescue:


#!/usr/bin/perl
open MYFILE, $ARGV[0] or die $!;
while (<MYFILE>) {
chomp;
#perform work here...
12,070
Posted By scolazz
Yes, exactly what I want. Sample output would...
Yes, exactly what I want. Sample output would look something like this:


access-list acl-secure-out line 2 extended permit tcp host hostname1.example.com object-group ser-secure-bed eq 2049 ...
12,070
Posted By scolazz
Convert IP address (within a line) to hostname
I have a tricky problem, and I'm quite the scripting newb.

I have Cisco ACLs that have IP addresses in them. I'd like to convert the IP's to hostnames for easier analysis. A sample ACL input file...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 09:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy