Count number of lines in a set of files
版本 1.0.0.0 (2.9 KB) 作者:
Guilherme Coco Beltramini
Count the number of lines in the files using a perl code
USAGE
numlines = countlines(name,option)
INPUT
- NAME: folder name where the files are or cell array with the file names (OPTION='dir' and 'file', respectively)
- OPTION: 'dir' (NAME is a folder) or 'file' (NAME is a file or set of files)
OUTPUT
- NUMLINES: Nx2 cell array, where N is the number of files, with the file name in the first column and the number of lines in the second column
引用格式
Guilherme Coco Beltramini (2024). Count number of lines in a set of files (https://www.mathworks.com/matlabcentral/fileexchange/41943-count-number-of-lines-in-a-set-of-files), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2010a
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 File Operations 的更多信息
标签
致谢
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |