Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go

Iteration in Bash

20190903 The following example shows a shorthand for iteration in the shell. The second pair of open and close curly braces are effectively aliases for the do and done commands.

for i in {1..3}; { echo $i; }

Reference: nixcraft on twitter

Copyright © 1995-2020 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware and the author of open source software including Rattle and wajig.
Also the author of Data Mining with Rattle and Essentials of Data Science.