/ Published in: Bash
Expand |
Embed | Plain Text
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
Comments
Subscribe to comments
You need to login to post a comment.

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.