[NBLUG/talk] greping lines

Micxz (lovedialup.com) an_email at micxz.com
Fri Aug 8 20:42:06 PDT 2003


I have a server with many many sites/clients. I want to find out what
version formail script they are all using. I used the command:

cat /usr/local/psa/home/vhosts/*/cgi-bin/formmail.pl | grep Version;

But it simply spits out all the line and versions, but I don't know
which directory they're in.

example output:
# FormMail                        Version
1.9                                #
        Version 1.9 - Released August 3, 2001<br>
# FormMail                        Version
1.9                                #
        Version 1.9 - Released August 3, 2001<br>
# FormMail                        Version
1.9                                #
        Version 1.9 - Released August 3, 2001<br>

There's version 1.9 but which client has it. Is there a $1 $2 thang I
can do
?

--
Micxz



More information about the talk mailing list