Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Quick way to find number of lines in 16GB file
Message
De
02/06/2020 21:43:22
 
 
Information générale
Forum:
Windows
Catégorie:
Informatique en général
Divers
Thread ID:
01674670
Message ID:
01674682
Vues:
41
>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
Fil
Voir

Click here to load this message in the networking platform