aboutsummaryrefslogtreecommitdiff
path: root/tabulate.sed
blob: fb081e5dccb1ae3268d31351ee92fd86d83e1ef5 (plain) (blame)
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