Here is a shell script that uses the GNU expand command. It will effectively edit the files in place. Uncomment the rm line to have it automatically delete the backup files. #!/bin/bash for file in $@ do backup="$file.bak" mv $file $backup expand -t 4 $backup > $file #rm $backup done -- Peace, James