diff options
author | Thomas Voss <thomasvoss@live.com> | 2022-01-10 00:29:10 +0100 |
---|---|---|
committer | Thomas Voss <thomasvoss@live.com> | 2022-01-10 00:29:10 +0100 |
commit | d5d5f497f1b9897e58bfb7d4703bac1a50e15568 (patch) | |
tree | 35c757ed83342a4994d9ce95e47e6c5f847a29e9 | |
parent | ecb889227590cd84a23cc3b4fa702d7c25cd7559 (diff) |
Add tabulation script
-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 |