Scan Drupal installations for version number

In case you got multiple Drupal installations at your server and want to find out the current version of each:

for i in $(find -maxdepth 2 -name CHANGELOG.txt); do dirname $i; head -n 2 $i|grep Drupal ; done

Use "drush up" to update where needed.