Install libfile-countlines-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libfile-countlines-perl
Description:
module for efficiently counting the number of lines in a file
perlfaq5 answers the question on how to count the number of lines in a file. File::CountLines is a convenient wrapper around that method, with additional options. . More specifically, it counts the number of line breaks rather than lines. On Unix systems nearlly all text files end with a newline (by convention), so usually the number of lines and number of line breaks is equal.
Homepage: https://metacpan.org/release/File-CountLines
Version: 0.0.3-2
Section: universe/perl