>_ IzzyLab

Topic breakdown

A space is a legitimate character in a file name, but for many utilities it also serves as an argument separator, so the find | xargs combination breaks such names into chunks by default. The solution is to agree on a different separator: instead of a newline/space, use a null byte (\0), which never occurs in paths. find can print paths separated by \0, and xargs can read them in the same mode; from there you just concatenate the contents and count the lines with the wc counter.

What's checked

  1. total line count across all .txt files is correct

What it looks like