Count number of lines in a set of files

Count the number of lines in the files using a perl code
208 téléchargements
Mise à jour 28 mai 2013

Afficher la licence

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

Citation pour cette source

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. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2010a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur File Operations dans Help Center et MATLAB Answers
Remerciements

Inspiré par : List files/folders recursively

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Publié le Notes de version
1.0.0.0