Skip to content

Instantly share code, notes, and snippets.

@bmsleight
Last active September 25, 2016 12:15
Show Gist options
  • Save bmsleight/ee1bf06022a6f8142f632b2c9a76dbd9 to your computer and use it in GitHub Desktop.
Save bmsleight/ee1bf06022a6f8142f632b2c9a76dbd9 to your computer and use it in GitHub Desktop.
#!/bin/bash
end=$(($1 + $2))
lstart=$(($1 + 1))
for i in `seq $lstart $end`;
do
start=$(printf %03d $1);
counter=$(printf %03d $i);
cp $3/frame_$start.gif $3/frame_$counter.gif
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment