>_ IzzyLab

Topic breakdown

Command substitution $(...) takes a command's output and inserts it right into a string — that's how the result of one command is embedded into text or into another's argument. A subtlety when counting a file's lines: if you feed the file via input redirection, wc -l outputs only the number, but as an argument it also appends the filename. The task trains assembling a string of the required format from literal text and an embedded count result.

What's checked

  1. line count substituted via $( )

What it looks like