summaryrefslogtreecommitdiff
path: root/scripts/organize
diff options
context:
space:
mode:
authorpants <niklasjo2004@gmail.com>2026-09-21 14:17:03 -0700
committerpants <niklasjo2004@gmail.com>2026-09-21 14:17:03 -0700
commit7b21727285e50b0b050c4ddd70d07542229c5366 (patch)
tree5d369153c5df5b41f3750d25479a68f20169c8ff /scripts/organize
init
Diffstat (limited to 'scripts/organize')
-rwxr-xr-xscripts/organize9
1 files changed, 9 insertions, 0 deletions
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