SpaceRace
Replace spaces in source files
Examples
To replace tabs with two spaces:
spacerace filename -s $'\t' -r ' '
In bash you specify a literal tab with: $'\t'
To replace two spaces with 1 tab:
spacerace filename -r $'\t' -s ' ' -d 2
The -d
option reduces the existing space.