diff options
-rwxr-xr-x | tabulate.sed | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tabulate.sed b/tabulate.sed new file mode 100755 index 0000000..cd30ff1 --- /dev/null +++ b/tabulate.sed @@ -0,0 +1,8 @@ +#!/bin/sed -Efi + +# Script to convert spaces to tabs +# Usage: ./tabulate.sed file1 file2 ... fileN + +:l +s/^(\t*) /\1\t/ +t l |