| 12:50 am on Feb 24, 2009 (gmt 0)|
I've never used Parallels pro and I'm unsure what the exact format of the /etc/virtualhosting/mappings/domainmap is but the following may work:
for i in `cat sitenums`;
grep $i[^0-9] /etc/virtualhosting/mappings/domainmap;
The $i[^0-9] should match any line that contains the output of the sitenums file not followed by a number.
I've run a test and it seems to work:
[root@TEST htdocs]$ cat test2.txt
[root@TEST htdocs]$ cat test3.txt
[root@TEST htdocs]$ cat shell.txt
for i in `cat test2.txt`;
grep $i[^0-9] test3.txt;
[root@TEST htdocs]$ ./shell.txt
| 2:27 am on Mar 1, 2009 (gmt 0)|
Looks like you are using Ensim?
It has a command line tool
sitelookup -a domain
to get a list of all domains
Maybe something like this will work:
sites=`sitelookup -a site_root¦sort`;for s in $sites;do find $s/var/www/html -type d -name wp-includes;done
That's a pipe to sort...to put them in alphabetical order for you.
| 2:55 am on Mar 1, 2009 (gmt 0)|
Thanks. I'll give it a try.
| 10:05 pm on Mar 3, 2009 (gmt 0)|
did that work for you?
| 11:06 pm on Mar 3, 2009 (gmt 0)|
I never got to try it. Someone from another forum wrote out a perl script that would get the information I needed. I have to learn how to program at some point!
| 11:18 pm on Mar 3, 2009 (gmt 0)|
I think it will do it. I like these simple one-liners. I use a ton of them for various tasks. Learning how to do a bash loop is useful for anyone working at the command line on Linux.
| 12:12 am on Mar 4, 2009 (gmt 0)|
I need to ask about your services. I wanted to get someone to upgrade one server from Ensim Pro 10.3.0 to 10.3.3. Is it ok to ask about that here?