mv-regex.sh 101 B

12345
  1. #!/usr/bin/env bash
  2. set -euo pipefail # bash strict mode
  3. shopt -s extglob
  4. mv +([0-9])x+([0-9])* "$@"