Profiling Bash

What makes this bash script slow?&#xA;Profiling GNU Bash is annoying, but then what isn&rsquo;t with Bash? perf can give you a good idea where CPU resources go if you&rsquo;re on Linux, or as I&rsquo;ve recently taken to calling it, GNU plus Linux. But Bash is usually just glue for other programs, and no sane person writes anything substantial in Bash.&#xA;Still, launching a new shell is taking…