From d5d5f497f1b9897e58bfb7d4703bac1a50e15568 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 10 Jan 2022 00:29:10 +0100 Subject: Add tabulation script --- tabulate.sed | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 tabulate.sed 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 -- cgit v1.2.3