longest line, sort by line length filter Icon

longest line, sort by line length filter

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

Add a Review
0 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, System Administrators, Developers, Testers

User Interface


Programming Language




Thanks for helping keep SourceForge clean.

Screenshot instructions:
Red Hat Linux   Ubuntu

Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Briefly describe the problem (required):

Upload screenshot of ad (required):
Select a file, or drag & drop file here.

Please provide the ad click URL, if possible:

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks