Signal9Signal9 — home
online
back to labs

Number Loop

EasyShell Scripting10-15 min
The brief

Use a loop to generate data. Write a script that writes the numbers 1 through 10, one per line, to /root/out/numbers.txt. Grading checks the file the loop produces.

What you'll do
  • Loop from 1 to 10
  • Write each number on its own line to /root/out/numbers.txt

Hands-on lab: you work on a real Linux box in your browser, graded on the machine's actual state.