Oops. The script will only expand _leading_ tabs correctly. There is a program called expand that is part of the GNU core-utils that will do the correct tab expansion but it doesn't edit the files in-place, it just sends its output to stdout. -- Peace, James