>_ IzzyLab

Topic breakdown

To repeat an action a fixed number of times, you need a loop spun exactly N iterations. The standard way to get a sequence of numbers is the seq utility, whose output is iterated over with a for loop; the loop variable itself may go unused — it just counts the passes. Arguments arrive as $1, $2, and text with spaces must be quoted, otherwise echo sees several words instead of a single string.

What's checked

  1. repeat is executable
  2. repeat 3 hi prints 3 lines
  3. each line equals hi

What it looks like