>_ IzzyLab

Topic breakdown

Brace expansion happens in bash before the command runs: a range {N..M} expands into a sequence of values, and a pattern with a common prefix and suffix around the braces turns into a series of ready-made arguments. Thanks to this, a single command gets a whole batch of filenames at once without any loop. The task also reminds you that the target directory must be created in advance — with a flag that creates the missing intermediate directories.

What's checked

  1. file1..file5.txt created

What it looks like