Tag Archives: wc

Calculate the number of lines in a CSV file using PHP and Linux


When parsing large text files, particularly CSV files, web developers often need to know the number of lines contained in the file up front. Knowing the CSV line count is useful for a number of reasons, for example, displaying a progress meter while parsing the large file, or estimating how long the parsing process might […]