Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jun 2003 16:42:27 -0400 (EDT)
From:      Andy Dills <andy@xecu.net>
To:        Schalk Erasmus <schalk@incredible.com.na>
Cc:        freebsd-isp@freebsd.org
Subject:   Re: FreeBSD - Radius Merge Lookup Append File Question
Message-ID:  <Pine.BSF.4.44.0306251628180.1009-100000@thunder.xecu.net>
In-Reply-To: <000801c33b28$843ac300$32c8de0a@omni>

next in thread | previous in thread | raw e-mail | index | archive | help
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
---



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.44.0306251628180.1009-100000>