in reply to Re^3: script outputs nothing/nada
in thread script outputs nothing/nada
grep -ri s/"\n"// ~/txt/bad_ips
That worked BEAUTIFULLY! Thank you!!!#!/usr/bin/perl # use strict; use warnings; # # my $workdir = "$ENV{HOME}/txt"; open BADIPS, "<", "$workdir/bad_ips" or die "Couldn't open file: $!"; my $i = 1; while (my $line = <BADIPS>) { chomp $line; print "add ns simpleacl bp-search-spammer$i DENY -srcIP $line -T +TL 43200\n"; $i++; } close BADIPS;<br><br>
|
|---|