I’ve just created a Python script that will take a filename on the command line and convert all of its tabs into the given number of spaces (2nd argument). Click here to download.
It doesn’t overwrite the original file but instead creates a new file with a “notabs_” prefix. Script is covered by the GNU GPL.
One response to New utility: tabs2spaces.py
Great stuff – a lifesaver for bad editors horking up my python code.