Fri, 6 Aug 1999 23:29:42 -0400
|
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
|
|
|