Posted By

Figjam on 07/30/09


Versions (?)

Display installed version of Joomla and base domain name

 / Published in: Bash

  1. find /usr/local/www/vhosts -type f -name 'CHANGELOG.php' -exec grep -Hm 1 "^-------------------- " {} + | sed -e 's|^/usr/local/www/vhosts/\([^/]*\)/[^:]*:\(--\)*\(.*\]\) \(--\)*|\3: \1|' | sort -t . -k1n,1n -k2n,2n -k3n,3n

Report this snippet  


RSS Icon Subscribe to comments
Posted By: Figjam on July 30, 2009

Needed a quick and dirty way to find domains with Joomla and the installed version on a shared hosting server. Don't forget to adjust the base domain in the "find" and "sed" commands.

You need to login to post a comment.