#!/bin/bash for img_num in "$@"; do echo "Opening $img_num" open static/photos/IMG_${img_num}.jpg done