How to pipe output of "drush sql-dump" without warnings When I do: drush sql-dump &gt; somewhere/database.sql if there will be any warnings printed by Drush, they will be included at the beginning of the created database.sql file. Can we avoid it somehow?

I know there is the --result-file= option that ignores all warnings when creating the file, but is there any way to ignore warnings when piping the output? I would like to parse the output before actually saving it into a file if its possible.

drush 8
Seems -q should do the job.


$options['quiet'] = array(
  'short-form' =&gt; 'q',
  'description' =&gt; 'Suppress non-error messages.',
);



Source: function drush_get_global_options