Howto loop based on some iterator

Say you have some files named a100 to a200 that you want to rename to b200 to b100 (it really does happen).

y=200
for x in `seq 100 200`
do
   mv a$x b$((y--))
done

seq is a fairly useful tool, it can also take a reversed list.

for x in `seq 200 -1 100`
do
printf "$x "
done

https://t.co/AGeihMALAv configuring grub2 with EFI Fri Sep 13 05:20:01 +0000 2019

I published a Thing on @thingiverse! https://t.co/IYpRyEb7Hz #thingalert Tue Jul 23 19:27:57 +0000 2019

Nokogiri install on MacOSX https://t.co/v3An0miW9L Fri Jul 12 15:06:49 +0000 2019

HTML email with plain mailer plugin on Jenkins https://t.co/Z6FSDMDjy8 Thu Jul 11 21:07:25 +0000 2019

git sparse checkout within Jenkinsfile https://t.co/tcL7V8mzFK Thu Jul 11 20:40:53 +0000 2019