Information générale
Catégorie:
Informatique en général
>Hi everybody,
>
>I have a 16GB csv file. I'd like to find number of lines in that file, so I try wc -l "name of the file" command by opening GitBash in the directory containing that file. Unfortunately, I waited ~30+ minutes and didn't get any result it. Do you know a quick way of finding number of lines in such a huge file?
>
>I can open this file to view using Lister.exe but it doesn't give me the lines count. All other editors cannot open the file.
>
>Thanks in advance.
While vfp LLF will balk on 2 GB size as well, COM text functions work well above those. I once created a file handling class which either worked on vfp LLF or corresponding COM calls to read files over 2GB. Speed was similar to vfp, except that writing large files in COM was faster. So Dotnet calls should do the trick as well - uncertain if call to read all lines into string array will work well, but slicing parts should work on any machine
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement