Could be done with only drush with with a few options: drush @site status --fields=drupal-version --field-labels=0
If you only want the major version of Drupal you can use awk to get only that: drush @site status --fields=drupal-version --field-labels=0 | awk -F. '{print$1}'
Could be done with only drush with with a few options:
drush @site status --fields=drupal-version --field-labels=0
If you only want the major version of Drupal you can use awk to get only that:
drush @site status --fields=drupal-version --field-labels=0 | awk -F. '{print$1}'