Mine
public text v1 · immutableCOUNT1=0
while read line
do
array1[$COUNT1]="$line"
COUNT1=$((COUNT1+1))
done < "2001_stuff.txt"
COUNT2=0
for file in `ls photos/*`
do
newname=$(echo $file | sed 's/\.jpg//')
array2[COUNT2]="$newname"
COUNT2=$((COUNT2+1))
done
COUNT3=0
while [ $COUNT3 -lt 66 ]
do
echo ${array1[COUNT3]} > photos/${array2[COUNT3]}.php
COUNT3=$((COUNT3+1))
done