Skip Navigational Links
LISTSERV email list manager
LISTSERV - COMMUNITY.EMAILOGY.COM
LISTSERV Menu
Log In
Log In
LISTSERV 17.5 Help - LSTSRV-L Archives
LISTSERV Archives
LISTSERV Archives
Search Archives
Search Archives
Register
Register
Log In
Log In

LSTSRV-L Archives

LISTSERV Site Administrators' Forum

LSTSRV-L

Menu
LISTSERV Archives LISTSERV Archives
LSTSRV-L Home LSTSRV-L Home

Log In Log In
Register Register

Subscribe or Unsubscribe Subscribe or Unsubscribe

Search Archives Search Archives
Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
Re: Termininating Users (employees)
From:
Valdis Kletnieks <[log in to unmask]>
Reply To:
LISTSERV give-and-take forum <[log in to unmask]>
Date:
Fri, 6 Aug 1999 23:29:42 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
On Fri, 06 Aug 1999 14:03:30 CDT, Philip Kizer <[log in to unmask]>  said:
>   cd ~listserv/home
>   [ do a 'sh' right here if you're not using a Bourne-compatible shell ]
>   for i in *.list; do listview $i | grep -i "owner *=.*UserNM" && echo $i ;done

Note that this can cause an incredibly odd error message if you
have a LOT of lists, if '*.list' expands out longer than the maximum
'argv' list on your system (which is easy to do if you have 3,000+
lists, the ".list" 3,000 times alone makes for 15K characters...

You may need to do this:

find . -name '*.list' | xargs listview | grep -i yadda yadda yadda.

Of course, the 'grep' doesn't do quite what you want because of the
way 'listview' works with multiple filenames - I have a Perl-ish
program to use instead of grep which I'll post once I've looked
it over for bogosity (for instance, it may be hardcoded to look
for only certain strings).

/Valdis

ATOM RSS1 RSS2

COMMUNITY.EMAILOGY.COM CataList Email List Search Powered by LISTSERV