Add move-firefox-screenshots script

This commit is contained in:
Oliver Davies 2024-06-12 09:00:00 +01:00
parent 68813f3af7
commit a7a979e17e
2 changed files with 17 additions and 0 deletions

11
bin/move-firefox-screenshots Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
original_directory="${HOME}/Downloads"
new_directory="${HOME}/Pictures/Screenshots"
find "${original_directory}" -mindepth 1 -maxdepth 1 -type f -name "Screenshot *" \
-exec mv {} "${new_directory}" \;