Ok so tried out some commands and seems like linux shell piping commands can help with this:
Disable all modules for a particular vendor name:
php bin/magento module:status | grep [VendorName] | grep -v List | grep -v None | grep -v -e '^$' | xargs php bin/magento module:disable -f
Example:
php bin/magento module:status | grep Foo_ | grep -v List | grep -v None | grep -v -e '^$'| xargs php bin/magento module:disable -f
Disable all custom modules except Magento's core modules:
php bin/magento module:status | grep -v Magento | grep -v List | grep -v None | grep -v -e '^$'| xargs php bin/magento module:disable -f
Hope this helps someone.