FunctionRacerProblemsRace

First Three Lines

BeginnerBasha shell script

Print the first three lines of log.txt.

Example 1

log.txt
INFO job 1
WARN disk 3
INFO job 2
ERROR mail 7
INFO job 3
prints
INFO job 1
WARN disk 3
INFO job 2

Constraints

Race itor take your time

Write it in your browser, against the clock. The model script, with a note on each command it uses, comes after.

More Bash problems