FunctionRacerProblemsRace

Last Two Lines

BeginnerBasha shell script

Print the last two lines of log.txt, in the order they have in the file.

Example 1

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

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