Lines 140-149... I have mixed feelings about that. On one hand, the software developer in me keeps screaming &quot;DRY! DRY! DRY!&quot;. On the other hand I find it really concise and understandable. I mean, can you look at this code and NOT know what it does? Now try to make the code better - do you still get the same effect? Probably not.<p>(disclaimer: I am arguing about <i></i>this specific case<i></i>, not about such code smells in general)<p>UPDATE: ...and if I missed something besides that the code is repeated, please correct me. Bash is not my strong point.