The 'bar' utility actually is a lot better than the patch I wrote and I highly recommend it when you are importing a large dump file. To use it simply run:
shell> bar -if=data.sql | mysql
This will generate an output such as:
If you are using Ubuntu then it is a simple case of 'sudo apt-get install bar' to install it. Enjoy!