This is a strange request. I have many csv files in different sub-directories from a parent directory (I know all the paths/filenames). I need to know the number of observations/rows in each of the csv files (I also need the filename and path saved so I can link the rows to the files).
It would also be sufficient to determine the number of observations/rows in all csv files in all subdirectories within the parent directory. (I only need the number of rows for the csv files, although there are txt files within the same folders.)
This is similar to what filelist (from ssc) does, but different. Filelist tells file size, whereas I need the number of observations/rows. Is there a way to do this?
Thanks in advance.
It would also be sufficient to determine the number of observations/rows in all csv files in all subdirectories within the parent directory. (I only need the number of rows for the csv files, although there are txt files within the same folders.)
This is similar to what filelist (from ssc) does, but different. Filelist tells file size, whereas I need the number of observations/rows. Is there a way to do this?
Thanks in advance.

Comment