dotfiles/bin/move-firefox-screenshots

12 lines
273 B
Bash
Executable file

#!/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}" \;