From: Fred T. Hamster Date: Tue, 17 Dec 2024 01:36:33 +0000 (-0500) Subject: snorkage X-Git-Tag: 2.140.189^2~56 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=0ec3b334d89a8d99a7604f19c33b3f323208ce09;p=feisty_meow.git snorkage --- 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" +