From d17a818581cf73ec2801bfd8d80a2e6e95c3b412 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 25 Jan 2024 23:04:02 -0600 Subject: Add templating capability --- tet | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 tet (limited to 'tet') diff --git a/tet b/tet new file mode 100755 index 0000000..c97d677 --- /dev/null +++ b/tet @@ -0,0 +1,9 @@ +#!/bin/sh + +__template__="$1"; shift +et="$(which et||echo ./et)" + +"$et" "$@" | sed '$d' +echo 'shexpand<<%' +cat "$__template__" +echo % -- cgit 1.4.1-21-gabe81