Signal9Signal9 — home
online
back to labs

Sed: Print a Line Range

EasySed & Awk3-5 min
The brief

You need just lines 10 through 20 of a log.

Extract those lines from /root/work/app.log into /root/work/out.txt.

Grading checks you got those 11 lines, in order, with no duplicates — a common first attempt emits every line twice.

What you'll do
  • Extract exactly lines 10-20, in order
  • Save the 11 lines to /root/work/out.txt with no duplicates

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