Skip to content

Instantly share code, notes, and snippets.

@ricardosiri68
Created October 28, 2016 18:54
Show Gist options
  • Save ricardosiri68/797f4c6deb97ea79417febd7b384a9b4 to your computer and use it in GitHub Desktop.
Save ricardosiri68/797f4c6deb97ea79417febd7b384a9b4 to your computer and use it in GitHub Desktop.
#!/bin/bash
i=0
for img in $(ls $1); do
i=$((i + 1));
cp "$1/$img" $2/image$i.jpg;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment