more (command line command)

from Wikipedia, the free encyclopedia
more in an X terminal - the highlighted area "--More--" at the bottom left .

more( /usr/bin/more) Paginated ( Engl. , More ') data streams. What a page is is determined (at least in the case of operating systems based on the POSIX standard) via the terminal control ( termcapor terminfo). Control is via <stdin>.

POSIX

morefollows the guidelines for command line programs , with the exception that both +and can be used -as an option delimiter . Input that is not composed of text leads to undefined results.

It is not only possible to output the input stream page by page, but also to search through it with regular expressions .

Furthermore, morethe ctags tool is closely coordinated so that taglines can be passed to as arguments more.

Some manufacturers have considerably expanded the standard range of functions (scrolling forwards and backwards, scrolling line by line, etc.). On AIX is morepractically the same as view.

DOS / Windows

The Windows (and the original MS-DOS ) implementation dispenses with most of the functions standardized in POSIX and is limited to the ability to output text page by page. Since the concept of default I / O Descriptors ( <stdin>, <stdout>, <stderr>) is not kept as strictly under DOS and its derivatives as described in Unix-like systems, and the call is not consistent and the indication of the text to be output must - depending - on I / O Redirection, pipelines or command line arguments take place.

history

The program morewas originally written in 1978 by Daniel Halbert , who was then a student at the University of California at Berkeley . Subsequently, moreby Eric Shienbrood and Geoff Peck highly developed and in particular to the possibility of the input using regular expressions to search expanded.

According to his own statement, Halbert was inspired by an older utility called cr3 as well as a message from the PDP-10 operating system ITS , which --MORE--waited with the text for a user input to scroll further in the case of multi-page editions . Eben This text --MORE--gives the program morein English language setting from when it is waiting for user input to scroll. The German language setting is displayed instead --Mehr--.

1979 was included morein the Berkeley Software Distribution 3.0 and is now part of the POSIX standard.

The less program was inspired by more .

An imitation of morewas also included in MS-DOS, and later Windows. Here the content of a file or a table of contents is paused after a page (20 lines) and continued after pressing the space bar. Pressing the Enter key results in a line being output.

Web links

Individual evidence

  1. 12.2 Utility Syntax Guidelines. Accessed February 26, 2018 (English).
  2. more specification in POSIX. Accessed February 26, 2018 (English).
  3. ^ Daniel Halbert: The Early History of the More Command. In: www.halwitz.org. March 4, 1994, Retrieved February 26, 2018 .