← All labs
ScriptingIntermediate~6 min

Generate a numbered list

Practice a loop. Produce a file ~/numbers.txt containing the numbers 1 through 5, one per line. Use a for (or while) loop — either typed directly or in a small script.

Your mission

  • Write the numbers 1,2,3,4,5 (one per line) into `~/numbers.txt`

Everything here is simulated and safe — break things freely. Your progress is tracked on the right and saved in this browser.

player@shellquest — loop-to-file