Created
November 4, 2019 12:22
-
-
Save takuan-osho/019adb0c28abaabe10bd74cee96789ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for num in $(seq 2 2 9) | |
do | |
num_incr=$(( num + 1 )) | |
echo "0000${num}.jpeg" | |
echo "0000${num_incr}.jpeg" | |
convert +append "0000${num}.jpeg" "0000${num_incr}.jpeg" "${num}.jpeg" | |
echo "converted to ${num}.jpeg" | |
done | |
for num in $(seq 10 2 99) | |
do | |
num_incr=$(( num + 1 )) | |
echo "000${num}.jpeg" | |
echo "000${num_incr}.jpeg" | |
convert +append "000${num}.jpeg" "000${num_incr}.jpeg" "${num}.jpeg" | |
echo "converted to ${num}.jpeg" | |
done | |
for num in $(seq 100 2 335) | |
do | |
num_incr=$(( num + 1 )) | |
echo "00${num}.jpeg" | |
echo "00${num_incr}.jpeg" | |
convert +append "00${num}.jpeg" "00${num_incr}.jpeg" "${num}.jpeg" | |
echo "converted to ${num}.jpeg" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment