#!/bin/bash cd /home/sarnia5/public_html/webcam/FI9900P_C4D6554097B7/snap; for i in webcam*.jpg; do mv -f "$i" "webcam_1.jpg"; done;