longest line, sort by line length filter

longest line, sort by line length filter - command line utilities

Add a Review
6 Downloads (This Week)
Last Update:
Download longestline.zip
Browse All Files


longestline is a commandline, and sortbylinelength are commandline utilities for DOS and Windows.

Useful for verification that any files in filesystem are not longer than MAX_PATH (Windows C++ compiler) or MAXPATH (DJGPP targeting for DOS) which is 260 characters. (see createdatafiles.cmd in longestline-x.x\win\ directory). May have other interesting and fun, and programming uses as well I have not thought of.

longestline gives a detailed report about the longest line in the text file.

sortbylinelength is a linux-style text filter which takes lines of text as standard input and sorts the text by line length (ALL lines in memory at once) and dumps the sorted lines to standard output. it can reverse the order with the --reverse commandline switch.

The only #ifdefs that need to be reworked for multiplatform are in stricmp-noglob.h

Includes binaries for DOS 32-bit DPMI, Windows 32+64-bit, source, build files, and batch files for working with filepaths (data).

longest line, sort by line length filter Web Site


  • fairly fast
  • cross-platform C++ (but no #ifdefs for LINUX)
  • DOS version runs on DOS/9x/me, Windows version runs on windows nt/2000/xp/vista/7/8 and up.


Write a Review

User Reviews

Be the first to post a review of longest line, sort by line length filter!

Additional Project Details



Intended Audience

Advanced End Users, Developers, Testers, System Administrators

User Interface


Programming Language



Screenshots can attract more users to your project.
Features can attract more users to your project.

Icons must be PNG, GIF, or JPEG and less than 1 MiB in size. They will be displayed as 48x48 images.