read n read -at eval ${t[@]/*/a[&]+=\'s+=(w++*2+1-n)*&,\'} echo $[${a[*]}s]