]> zdv2.bktei.com Git - BK-2020-03.git/blobdiff - user/gthumb/rmall.org
chore(unitproc/bkt-sum_float):Add author and license
[BK-2020-03.git] / user / gthumb / rmall.org
index 7b25fdc3b2cb1a048ffa247e7e5f8fa69704cf6d..40a4afd783740143e55e6337c60b99bf81f85c41 100644 (file)
@@ -12,7 +12,7 @@ parent directories (e.g. ~dir1~, ~dir2~) are preserved within
 ~.trash/~.
 
 ** Stats
 ~.trash/~.
 
 ** Stats
-Version: 0.0.5
+Version: 0.0.6
 License: GPLv3+
 gThumb version: ~3.12.6~
 Suggested keyboard shortcut: ~Shift + T~
 License: GPLv3+
 gThumb version: ~3.12.6~
 Suggested keyboard shortcut: ~Shift + T~
@@ -38,15 +38,21 @@ Then, it is upon the user to empty the contents of ~.trash~ to
 permanently delete them.
 
 ** Code
 permanently delete them.
 
 ** Code
+Paste the code below into the ~Command~ field of the ~Edit Command~
+window under ðŸ”§ â†’ Personalize… .
+
 Line-by-line view:
 #+BEGIN_EXAMPLE
 Line-by-line view:
 #+BEGIN_EXAMPLE
-# rmall v0.0.5
+# rmall v0.0.6
 fdebug=/tmp/gtlog.txt;
 f=%F;
 fBase="$(basename "$f")";
 fne="${fBase%.*}";
 dppar="$(dirname %P)";
 dtrash="${dppar}/.trash";
 fdebug=/tmp/gtlog.txt;
 f=%F;
 fBase="$(basename "$f")";
 fne="${fBase%.*}";
 dppar="$(dirname %P)";
 dtrash="${dppar}/.trash";
+if [ -z "$fne" ]; then printf "FATAL: Empty stem from:%s\n" "$fne" 1>>"$fdebug" 2>&1; exit 1; fi;
+runDate="$(date -Is 2>&1)";
+printf "STATUS:runDate:%s\n" "$runDate" 1>>"$fdebug" 2>&1;
 printf "DEBUG:fdebug:%s\n" "$fdebug" 1>>"$fdebug" 2>&1;
 printf "DEBUG:f:%s\n" "$f" 1>>"$fdebug" 2>&1;
 printf "DEBUG:fBase:%s\n" "$fBase" 1>>"$fdebug" 2>&1;
 printf "DEBUG:fdebug:%s\n" "$fdebug" 1>>"$fdebug" 2>&1;
 printf "DEBUG:f:%s\n" "$f" 1>>"$fdebug" 2>&1;
 printf "DEBUG:fBase:%s\n" "$fBase" 1>>"$fdebug" 2>&1;
@@ -57,16 +63,16 @@ for fsrc in "${dppar}"/*/"${fne}".*; do
   if [ ! -e "$fsrc" ]; then continue; fi;
   sdname="$(basename "$(dirname "$fsrc")")";
   ddest="${dtrash}/${sdname}";
   if [ ! -e "$fsrc" ]; then continue; fi;
   sdname="$(basename "$(dirname "$fsrc")")";
   ddest="${dtrash}/${sdname}";
-  printf "DEBUG:fsrc:%s\n" "$fsrc";
-  printf "DEBUG:sdname:%s\n" "$sdname";
-  printf "DEBUG:ddest:%s\n" "$ddest";
+  printf "DEBUG:fsrc:%s\n" "$fsrc" 1>>"$fdebug" 2>&1;
+  printf "DEBUG:sdname:%s\n" "$sdname" 1>>"$fdebug" 2>&1;
+  printf "DEBUG:ddest:%s\n" "$ddest" 1>>"$fdebug" 2>&1;
   if [ ! -d "$ddest" ]; then
   if [ ! -d "$ddest" ]; then
-      printf "DEBUG:Destination dir does not exist. Creating:%s\n" "$ddest";
+      printf "DEBUG:Destination dir does not exist. Creating:%s\n" "$ddest" 1>>"$fdebug" 2>&1;
       mkdir -p "$ddest";
   else
       mkdir -p "$ddest";
   else
-      printf "DEBUG:Destination dir exists:%s\n" "$ddest";
+      printf "DEBUG:Destination dir exists:%s\n" "$ddest" 1>>"$fdebug" 2>&1;
   fi;
   fi;
-  printf "STATUS: Moving %s â†’ %s\n" "$fsrc" "$ddest/";
+  printf "STATUS: Moving %s â†’ %s\n" "$fsrc" "$ddest/" 1>>"$fdebug" 2>&1;
   mv -n "$fsrc" "$ddest/";
 done 1>>"$fdebug" 2>&1;
 sleep 1;
   mv -n "$fsrc" "$ddest/";
 done 1>>"$fdebug" 2>&1;
 sleep 1;