1 2 3 4 5 6 7 8
#!/bin/sed -Ef # Script to convert spaces to tabs # Usage: ./tabulate.sed file1 file2 ... fileN :l s/^(\t*) /\1\t/ t l