aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <thomasvoss@live.com> 2022-01-10 00:29:10 +0100
committerThomas Voss <thomasvoss@live.com> 2022-01-10 00:29:10 +0100
commitd5d5f497f1b9897e58bfb7d4703bac1a50e15568 (patch)
tree35c757ed83342a4994d9ce95e47e6c5f847a29e9
parentecb889227590cd84a23cc3b4fa702d7c25cd7559 (diff)
Add tabulation script
-rwxr-xr-xtabulate.sed8
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