Documentation
¶
Overview ¶
Package morecmd implements more(1). When standard output is a terminal and a controlling-terminal command channel is available, it pages the input a screenful at a time with the POSIX Issue 7 interactive command language, file navigation, BRE searching, marks, tags, and editor handoff. When output is not a terminal it uses a non-interactive pass-through: files/stdin are copied to stdout unmodified except for `-s` (squeeze), matching POSIX's requirement that no option other than `-s` take effect when stdout is not a terminal.
-P searches for a literal pattern (util-linux semantics); when the pattern is not found, "Pattern not found" is printed to standard error and the file is displayed from the start.