From fc3501382c2aa3ef5b692f4f55c2616f9cade3f5 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 25 Apr 2025 12:18:00 +0200 Subject: Move toolbox scripts to a "bin" directory. Add a super "rtt" command to run the scripts. --- bin/rtt-foreach | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 bin/rtt-foreach (limited to 'bin/rtt-foreach') diff --git a/bin/rtt-foreach b/bin/rtt-foreach new file mode 100755 index 0000000..22feb77 --- /dev/null +++ b/bin/rtt-foreach @@ -0,0 +1,17 @@ +#!/bin/bash + +if [ -z "$1" ] +then + echo "usage: rtt-foreach " + exit 1 +fi + +for M in $(sqlite3 db "select title_id from titles") +do + echo "Entering 'public/$M'" + if pushd public/$M >/dev/null + then + "$@" + popd >/dev/null + fi +done -- cgit v1.2.3