FreeBSD - Radius Merge Lookup Append File Question

Andy Dills andy at xecu.net
Wed Jun 25 13:42:32 PDT 2003


On Wed, 25 Jun 2003, Schalk Erasmus wrote:

> Hi,
>
> I need some assistance to do a lookup from a Textfile of active users, and
> then remove the "Non-Active" users (non listed users in Textfile) and
> associated info, from the Radius USERS file.

#!/usr/bin/perl

$blah = `cat /path/to/usersfile`;

open BLAH ('/path/to/file/with/activeusers');

while (<BLAH>) {
	chop;
	$blah =~ s/(\s+)$_\s+.*\n\n/$1/s;
}

print $blah;


That will be $125 USD. :)

Andy

---
Andy Dills
Xecunet, Inc.
www.xecu.net
301-682-9972
---



More information about the freebsd-isp mailing list