## display list of content types and # of associated nodes:
drush sqlq 'select count(node.nid) as node_count, node_type.type from node inner join node_type on node.type = node_type.type group by node_type.type'
## Contents
- [Drupal / Drush](#drupal--drush)
- [Text Processing](#text-processing)
- [Torrents](#torrents)
- [PDF Tools](#pdf-tools)
## And then if you want filter by a specific type, just use grep like this:
drush sqlq 'select count(node.nid) as node_count, node_type.type from node inner join node_type on node.type = node_type.type group by node_type.type' | grep 2014
---
## search replace in text mulitle files
## Drupal / Drush
> Note: These SQL queries target the Drupal 7 schema (`node_type` table). They won't work as-is on Drupal 8+.
### List content types with node counts
drush sqlq 'select count(node.nid) as node_count, node_type.type
from node
inner join node_type on node.type = node_type.type
group by node_type.type'
### Filter results by keyword (e.g. "2014")
drush sqlq 'select count(node.nid) as node_count, node_type.type
from node
inner join node_type on node.type = node_type.type