I have a LAMP environment with
/var/www/html/x which is a MediaWiki website. I have a few more MediaWiki websites but I'd like to print the version of the
x one to terminal.
I need to do so I could know what the last version was before I manually update MediaWiki.
Inside that dir, there's a file named
RELEASE-NOTES-1.32 with the text:
== MediaWiki 1.32 ==
=== Changes since MediaWiki 1.32.0-rc.2 ===
Maybe I should just print line 3 as with
awk 'NR>3' /var/www/html/x/RELEASE-NOTES-* but maybe there's a better way to know the full version of a given MediaWiki installation.
What would be the best, most stable way to do this outputting?