summaryrefslogtreecommitdiff
path: root/scripts/organize
blob: f0b12642ca6ff9be323051dfbd5e20f194b9f233 (plain)
1
2
3
4
5
6
7
8
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