back to labs
Dojo: Print the 10th Line
EasyOne-Liner Dojo8 minThe brief
You need exactly line 10 of /root/file.txt — not the first ten, just the tenth. In ONE line, print that single line and write it to /root/answer.txt.
sed addresses lines by number; tell it to print line 10 and quit. (A head | tail combo also works, but that's two processes for one line.)
What you'll do
- Write the 10th line of /root/file.txt to /root/answer.txt, in one line
Hands-on lab: you work on a real Linux box in your browser, graded on the machine's actual state.
