First and Last

Easy · Pipelines & Redirection · head · tail

Problem

Print the first two lines of log.txt, then its last line.

Approaches

Related problems

Start free on Cariara · Coding problems · System design studio

Coding practice is in SolveMe.Open