Lably
Skip to content

Sort (Unix)

  • 5 min read
  • 3 chapters

Related on Lably

Through Computing and Operating system

History

A sort command that invokes a general sort facility was first implemented within Multics. Later, it appeared in Version 1 Unix. This version was originally written by Ken Thompson at AT&T Bell Laboratories. By Version 4 Thompson had modified it to use pipes, but sort retained an option to name the output file because it was used to sort a file in place. In Version 5, Thompson invented "-" to represent standard input.

The version of sort bundled in GNU coreutils was written by Mike Haertel and Paul Eggert. This implementation employs the merge sort algorithm.

Similar commands are available on many other operating systems, for example a sort command is part of ASCII's MSX-DOS2 Tools for MSX-DOS version 2.

The sort command has also been ported to the IBM i operating system.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Notable people