Skip to content

Pipes and streams

hardpar 1 command

Read one line, not the file

Print the first line of big.txt. The answer is graded on what it read as well as what it printed — a pipeline that reads the whole file does not pass.

Goal

0 / 1 commands

Print the first line of big.txt without reading the rest of it.

  • ·Reads at most 200 bytes
  • ·Starts at most 1 process
  • ·Puts the answer on standard output
$

The files in the sandbox, with their modes, link counts and sizes
ModeLinksSizeName
-rw-r--r--14004big.txt