From 68fdc1e356ebf9a109560856352c00a2998919be Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Wed, 27 Jan 2021 19:51:07 +0100 Subject: [PATCH] inital script for quicker readings index generator --- readings_index/lesungen_script | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 readings_index/lesungen_script diff --git a/readings_index/lesungen_script b/readings_index/lesungen_script new file mode 100755 index 0000000..2e1aec0 --- /dev/null +++ b/readings_index/lesungen_script @@ -0,0 +1,8 @@ +#!/bin/bash + +for n in {1..2000}; do + printf "index of reading no. L-%s?" "$n" + read -r index + line="$(grep -P "^$index\t" lesungen)" + printf '%s\t%s\n' "$line" "$n" | tee -ai test +done