From 7b21727285e50b0b050c4ddd70d07542229c5366 Mon Sep 17 00:00:00 2001 From: pants Date: Mon, 21 Sep 2026 14:17:03 -0700 Subject: init --- scripts/organize | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 scripts/organize (limited to 'scripts/organize') diff --git a/scripts/organize b/scripts/organize new file mode 100755 index 0000000..f0b1264 --- /dev/null +++ b/scripts/organize @@ -0,0 +1,9 @@ +#!/bin/sh +# made to organize screenshots folder. +## makes directories named by the first ten chars of filenames ending in .png,- +## and copies (NOT moves) said file into them. +for file in *.png; do + DIRNAME=$(echo $file | cut -c1-10) + mkdir -p $DIRNAME + cp $file $DIRNAME +done -- cgit v1.2.3