The control of absolutely and convectively unstable shear flows