How to use the killall command for multiple processes

Let's say you have a dozen processes called "wine" all running at once. Activity monitor will not allow you to quit them all at once - you'll have to do it manually one by one which is a tedious process. To do them en mass, type this into terminal:
 
killall -m "wine"
 
Obviously, changing wine for the process you have running. Map