From 0ec3b334d89a8d99a7604f19c33b3f323208ce09 Mon Sep 17 00:00:00 2001 From: "Fred T. Hamster" Date: Mon, 16 Dec 2024 20:36:33 -0500 Subject: [PATCH] snorkage --- .../fred/scripts/jobby/archive_testingler.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scripts/customize/fred/scripts/jobby/archive_testingler.sh diff --git a/scripts/customize/fred/scripts/jobby/archive_testingler.sh b/scripts/customize/fred/scripts/jobby/archive_testingler.sh new file mode 100644 index 00000000..15fccdee --- /dev/null +++ b/scripts/customize/fred/scripts/jobby/archive_testingler.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +# just create an archive dir for testing our grabber. + +NONSENSE_SCRIPT="$HOME/testingly_tingler.txt" + +function date_stringer() { local sep="$1"; shift; if [ -z "$sep" ]; then sep='_'; fi; date +"%Y$sep%m$sep%d$sep%H%M$sep%S" | tr -d '/\n/'; } + +cat "$0" > "$NONSENSE_SCRIPT" +export archdir="z_archies_${RANDOM}"; mkdir -p "$archdir"; cp "$NONSENSE_SCRIPT" "$archdir/blarghy_script_$(date_stringer).txt" +rm "$NONSENSE_SCRIPT" + -- 2.34.1