multiple variable looping bash

If you want to loop through something with more than one variable in bash this is your ticket to ride: #!/usr/bin/env bash while read -r x y z; do echo “$x $y $z” done <<‘_____HERE a b c 1 2 3 x y z 7 8 9 _____HERE

animated gif from imagemagick

put the list of files into a file ls -1 foo*.jpg > /var/tmp/jpglist rename randomly named files in numerical order cat /var/tmp/jpglist|perl -e’$i=1;while ($name=) { chomp $name;$new=”week” . $i . “.jpg”;system (“cp $name $new”);;$i++};’ resize all 13 files named week[number].jpg, add the Week[number].jpg to the lower right hand corner of Read more